Disable In Inline Editors Attribute:用于在Inline中禁用(灰態(tài))對應(yīng)的屬性
public class DisableInInlineEditorsAttributeExample : MonoBehaviour
{
[InfoBox("Click the pen icon to open a new inspector window for the InlineObject too see the difference this attribute make.")]
[InlineEditor(Expanded = true)]
public MyInlineScriptableObject InlineObject ;
}
[CreateAssetMenu(fileName = "MyInline_ScriptableObject", menuName = "CreatScriptableObject/MyInlineScriptableObject")]
public class MyInlineScriptableObject : ScriptableObject
{
[ShowInInlineEditors]
public string ShownInInlineEditor;
[HideInInlineEditors]//在繪制的里面不顯示
public string HiddenInInlineEditor;
[DisableInInlineEditors]//顯示但是是灰態(tài)
public string DisabledInInlineEditor;
}