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.

Fields

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

Member Functions

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