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.
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;
}
public DetailedInfoBoxAttribute(string message, string details, InfoMessageType infoMessageType = InfoMessageType.Info, string visibleIf = null)
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. |
public string Details
public InfoMessageType InfoMessageType
public string Message
public string VisibleIf