Version 3.1.1.0

RequiredInPrefabAssetsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public sealed class RequiredInPrefabAssetsAttribute : Attribute, _Attribute
Inheritance
  • System.Object
  • System.Attribute
  • RequiredInPrefabAssetsAttribute

Constructors

RequiredInPrefabAssetsAttribute()
Adds an error box to the inspector, if the property is missing.
public RequiredInPrefabAssetsAttribute()
RequiredInPrefabAssetsAttribute(InfoMessageType)
Adds an info box to the inspector, if the property is missing.
public RequiredInPrefabAssetsAttribute(InfoMessageType messageType)
Parameters
InfoMessageType messageType

The type of info box to draw.

RequiredInPrefabAssetsAttribute(String)
Adds an error box to the inspector, if the property is missing.
public RequiredInPrefabAssetsAttribute(string errorMessage)
Parameters
System.String errorMessage

The message to display in the error box.

RequiredInPrefabAssetsAttribute(String, InfoMessageType)
Adds an info box to the inspector, if the property is missing.
public RequiredInPrefabAssetsAttribute(string errorMessage, InfoMessageType messageType)
Parameters
System.String errorMessage

The message to display in the error box.

InfoMessageType messageType

The type of info box to draw.

Fields

ErrorMessage
The message of the info box.
public string ErrorMessage
MessageType
The type of the info box.
public InfoMessageType MessageType