Button

More information can be found in the Unity API Reference

Members

Member

Description

animator

gameObject

image

interactable

transform

Events

Event

Description

onClick

onPointerClick

onPointerDown

onPointerEnter

onPointerExit

onPointerUp

Methods

Method

Description

IsActive()

IsDestroyed()

IsInteractable()

Select()

ToString()

Static members

Member

Description

allSelectableCount

Details

class Button
const Animator animator
const GameObject gameObject
Image image
bool interactable
const Transform transform
const ScriptEvent onClick

Callback Signature:

void callback()
const ScriptEvent onPointerClick

Callback Signature:

void callback()
const ScriptEvent onPointerDown

Callback Signature:

void callback()
const ScriptEvent onPointerEnter

Callback Signature:

void callback()
const ScriptEvent onPointerExit

Callback Signature:

void callback()
const ScriptEvent onPointerUp

Callback Signature:

void callback()
bool IsActive()
bool IsDestroyed()
bool IsInteractable()
void Select()
string ToString()
static const int allSelectableCount