Version 3.1.11.0

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

Constructors

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

The type of info box to draw.

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

The message to display in the error box.

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