Disable In Prefab Assets Attribute:用于當(dāng)屬性所在的組件是預(yù)制體,且預(yù)制體在Asset中時(shí)禁用屬性
using Sirenix.OdinInspector;
using UnityEngine;
public class DisableInPrefabAssetsAttributeExample : MonoBehaviour
{
[DisableInPrefabAssets]//在asset中且為預(yù)制體時(shí),這個(gè)屬性被警用
public GameObject DisabledInPrefabAssets;
}