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




点击右上角即可分享
微信分享提示