kingBook

导航

2021年6月28日 #

Unity ContextMenu 扩展组件的环境菜单(在 Inspector 视图组件名称上的右击下拉菜单)

摘要: public class EndArea : MonoBehaviour { #if UNITY_EDITOR [ContextMenu("Generate")] private void Generate () { Debug.Log("Generate"); } #endif } 扩展内置组件的 阅读全文

posted @ 2021-06-28 09:41 kingBook 阅读(679) 评论(0) 推荐(0) 编辑