Version 3.1.11.0

RequiredInPrefabInstancesAttribute 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 RequiredInPrefabInstancesAttribute : Attribute, _Attribute
Inheritance
  • System.Object
  • System.Attribute
  • RequiredInPrefabInstancesAttribute

Constructors

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

The type of info box to draw.

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

The message to display in the error box.

RequiredInPrefabInstancesAttribute(String, InfoMessageType)
Adds an info box to the inspector, if the property is missing.
public RequiredInPrefabInstancesAttribute(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