![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unityEditor
dcc1342037699
每天学一点,嘿嘿
展开
-
unity编辑扩展-给物体环境光赋贴图
当物体有光影贴图时,不要给他自发光,且数量比较大using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;public class SetSelfLightmap : Editor{ //层级窗口(Hierarchy)右键菜单扩展 [MenuItem("GameObject/SetMap", false, 10)] static voi原创 2021-11-24 23:39:33 · 2515 阅读 · 0 评论 -
Unity编辑器扩展2-移除的碰撞(相同属性)
条件:1,选择物体名字都包含的内容2,带有碰撞属性using System.Collections;using System.Collections.Generic;using UnityEngine;#if UNITY_EDITORusing UnityEditor;#endifpublic class RemoveCollider : ScriptableWizard{ //定义菜单的路径 [MenuItem("DCCTools/Collider/Remov原创 2021-11-24 23:28:11 · 3175 阅读 · 0 评论 -
unity编辑器扩展——替换选择物体名字中的内容
名字的特点:1,有规律2,有相同的内容可以用这个工具,修改物体的名字,在菜单中生成的自定义目录“DCCTools/Rename”using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;public class ReplanName : ScriptableWizard{ [MenuItem("DCCTools/Rename")] .原创 2021-11-24 23:12:58 · 2919 阅读 · 0 评论