API reference
API reference
Select your platform
No SDKs available
No versions available

ButtonAttribute Class

Extends Attribute
An attribute to show a Button in the inspector for a method in a MonoBehaviour script.

Constructors

ButtonAttribute ( displayName , label , tooltip , isRuntimeOnly )
An attribute to show a Button in the inspector for a method in a MonoBehaviour script.
Signature
Meta.WitAi.Attributes.ButtonAttribute.ButtonAttribute(string displayName=null, string label=null, string tooltip=null, bool isRuntimeOnly=false)
Parameters
displayName: string  The name to be shown on the button. If not provided the function name will be used.
label: string  The label to be used for the foldout. If not provided displayName will be shown.
tooltip: string  Tooltip to show on the button
isRuntimeOnly: bool  Only show if the game is running.

Fields

displayName : readonly string
Signature
readonly string Meta.WitAi.Attributes.ButtonAttribute.displayName
isRuntimeOnly : readonly bool
Signature
readonly bool Meta.WitAi.Attributes.ButtonAttribute.isRuntimeOnly
label : readonly string
Signature
readonly string Meta.WitAi.Attributes.ButtonAttribute.label
tooltip : readonly string
Signature
readonly string Meta.WitAi.Attributes.ButtonAttribute.tooltip