摘要:
ContextMenuItem 用于给成员变量增加右键菜单 加在成员变量上,在成员变量上右键弹出右键菜单,对应的菜单函数只能是成员函数,不能是static函数 public class TestContextMenu : MonoBehaviour { [ContextMenuItem("Reset 阅读全文
摘要:
var rtf = GetComponent<RectTransform>(); rtf.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 200); SetSizeWithCurrentAnchors不会改变anchorMin和anc 阅读全文
摘要:
效果 using System.IO; using UnityEditor; using UnityEngine; public static class AssetDepsTool { private const string Default_Copy_Folder = "D:/UnityAsse 阅读全文