Version 3.3.1.2

Odin has a dedicated attribute overview with examples

DetailedInfoBoxAttribute 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 = true, Inherited = true)]
[DontApplyToListElements]
[Conditional("UNITY_EDITOR")]
public class DetailedInfoBoxAttribute : Attribute, _Attribute

DetailedInfoBox is used on any property, and displays a message box that can be expanded to show more details.

Use this to convey a message to a user, and give them the option to see more details.

Inheritance
  • System.Object
  • System.Attribute
  • DetailedInfoBoxAttribute
Example

The following example shows how DetailedInfoBox is used on a field.

public class MyComponent : MonoBehaviour
{
	[DetailedInfoBox("This is a message", "Here is some more details about that message")]
	public int MyInt;
}
See Also

Constructors

DetailedInfoBoxAttribute(String, String, InfoMessageType, String)
Displays a message box with hideable details.
public DetailedInfoBoxAttribute(string message, string details, InfoMessageType infoMessageType = InfoMessageType.Info, string visibleIf = null)
Parameters
System.String message

The message for the message box.

System.String details

The hideable details of the message box.

InfoMessageType infoMessageType

Type of the message box.

System.String visibleIf

Optional name of a member to hide or show the message box.

Fields

Details
The hideable details of the message box.
public string Details
InfoMessageType
Type of the message box.
public InfoMessageType InfoMessageType
Message
The message for the message box.
public string Message
VisibleIf
Optional name of a member to hide or show the message box.
public string VisibleIf