Summary
Initializes this button when called with `index` 0.
Otherwise, creates a copy of this button and initializes it instead.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Samples - Containing Type
- SampleButton
Syntax
public SampleButton AddButton(int index, string text, UnityAction onClick)
Parameters
| Name | Type | Description |
|---|---|---|
| index | int | |
| text | string | |
| onClick | UnityAction |
Return Value
| Type | Description |
|---|---|
| SampleButton |