扩展自定义类在Inspector面板的显示/在Inspector面板显示自定义类方法

1、编辑器 简单一点的方法,给类方法添加 [ContextMenu("")] 标记,添加完成后,在Inspector面板的该脚本组件下,右键弹出菜单,可在编辑器环境调用该方法ide public class InspectorEditorTest : MonoBehaviour { [SerializeField] string outPutStr; //在Inspector面板
相关文章
相关标签/搜索