HideMonoScriptAttribute

Apply HideMonoScript to your class to prevent the Script property from being shown in the inspector.<remarks>(26938,8)

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)4, AllowMultiple = False, Inherited = True)]
public sealed class HideMonoScriptAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.4.1

See Also

  • Attribute

Example

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
}