摘要: ContextMenuItem 用于给成员变量增加右键菜单 加在成员变量上,在成员变量上右键弹出右键菜单,对应的菜单函数只能是成员函数,不能是static函数 public class TestContextMenu : MonoBehaviour { [ContextMenuItem("Reset 阅读全文
posted @ 2023-07-30 23:13 yanghui01 阅读(32) 评论(0) 推荐(0) 编辑
摘要: var rtf = GetComponent<RectTransform>(); rtf.SetSizeWithCurrentAnchors(RectTransform.Axis.Horizontal, 200); SetSizeWithCurrentAnchors不会改变anchorMin和anc 阅读全文
posted @ 2023-07-30 14:30 yanghui01 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 效果 using System.IO; using UnityEditor; using UnityEngine; public static class AssetDepsTool { private const string Default_Copy_Folder = "D:/UnityAsse 阅读全文
posted @ 2023-07-30 00:02 yanghui01 阅读(3) 评论(0) 推荐(0) 编辑