Odin-Inspector-系列教程—–HideInPrefabInstancesAttribute

Hide In Prefab Instances Attribute:属性所在的组件在预制体上,且预制体在为instance(在Hierarchy中)时,隐藏属性

using Sirenix.OdinInspector;
using UnityEngine;

public class HideInPrefabInstancesAttributeExample : MonoBehaviour
{
    [HideInPrefabInstances]
    public GameObject HiddenInPrefabInstances;
}

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

发表评论