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

ButtonAttribute Class

An attribute to show a Button in the inspector for a method in a MonoBehaviour script.
Meta::WitAi::Attributes::ButtonAttribute extends Attribute.

Overview

Data Fields

readonly string
readonly string
label[Get]
readonly string
tooltip[Get]
readonly bool

Public Member Functions

ButtonAttribute
( string displayName,
string label,
string tooltip,
bool isRuntimeOnly )
An attribute to show a Button in the inspector for a method in a MonoBehaviour script.

Details

Fields

readonly string Meta.WitAi.Attributes.ButtonAttribute.displayName
No description available.
readonly string Meta.WitAi.Attributes.ButtonAttribute.label
No description available.
readonly string Meta.WitAi.Attributes.ButtonAttribute.tooltip
No description available.
readonly bool Meta.WitAi.Attributes.ButtonAttribute.isRuntimeOnly
No description available.

Member Functions

Meta.WitAi.Attributes.ButtonAttribute.ButtonAttribute
( string displayName,
string label,
string tooltip,
bool isRuntimeOnly )
An attribute to show a Button in the inspector for a method in a MonoBehaviour script.
Parameters
displayName
The name to be shown on the button. If not provided the function name will be used.
label
The label to be used for the foldout. If not provided displayName will be shown.
tooltip
Tooltip to show on the button
isRuntimeOnly
Only show if the game is running.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon