03 2023 档案
灰度图
摘要:public Texture2D texture;//图片(设为可读取) int w;//图片的宽 int h;//图片的高 void Start() { w = texture.width;//w*h不能超过65000 h = texture.height; VertexHelper vh = n
阅读全文
柏林噪声地形图
摘要:public RectTransform redimg;//小地图中的人物红点 public Transform player;//人物 public Image map;//小地图(父级要有个Mash组件) public Texture2D texture; public int w=50; pu
阅读全文
摇杆
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; /// <summary> /// 摇杆 /// </summary> pub
阅读全文
导出mesh网格
摘要:using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using UnityEditor; using UnityEngine; /// <summary> //
阅读全文
框选
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; using UnityEngine.UI; /// <summary> /// /// </sum
阅读全文
将预制体转个图片出来
摘要:using UnityEditor; using UnityEngine; /// <summary> /// 将预制体转个图片出来 /// </summary> public class ExportPicture : MonoBehaviour { public GameObject[] pre
阅读全文
人物换装
摘要:using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SkinnedMeshRenderer))] public class CombinePla
阅读全文
合并网格、图集
摘要:只合并网格 public GameObject[] objs; // Start is called before the first frame update void Start() { Mesh mesh = new Mesh(); // 合并网格组件 List<CombineInstance
阅读全文