Odin-Inspector-系列教程—–HideMonoScriptAttribute

Hide Mono Script Attribute特性:用于隐藏Mono脚本在检查器中的显示

[CreateAssetMenu(fileName = "HideMonoScript_ScriptableObject", menuName = "CreatScriptableObject/HideMonoScript")]
[HideMonoScript]
public class HideMonoScript : ScriptableObject
{
    public string Value;
}
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "ShowMonoScript_ScriptableObject", menuName = "CreatScriptableObject/ShowMonoScript")]
public class ShowMonoScript : ScriptableObject
{
    public string Value;
}

更多教程内容详见:革命性Unity 编辑器扩展工具 — Odin Inspector 系列教程

发表评论