Hide In Prefab Instances Attribute:屬性所在的組件在預(yù)制體上凸舵,且預(yù)制體在為instance(在Hierarchy中)時(shí)盅惜,隱藏屬性
using Sirenix.OdinInspector;
using UnityEngine;
public class HideInPrefabInstancesAttributeExample : MonoBehaviour
{
[HideInPrefabInstances]
public GameObject HiddenInPrefabInstances;
}