Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public sealed class HideMonoScriptAttribute : Attribute, _Attribute
This attribute has the same effect on a single type that the global configuration option "Show Mono Script In Editor" in "Preferences -> Odin Inspector -> General -> Drawers" has globally when disabled.
The following example shows how to use this attribute.
[HideMonoScript]
public class MyComponent : MonoBehaviour
{
// The Script property will not be shown for this component in the inspector
}
public HideMonoScriptAttribute()