A class in Root.Township, Alta.Meta.UI.
A UI Button with a touch area size, for the in-world touch screen menus.
Constructors
| Member | What it is |
|---|
TouchScreenButton() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private Vector2 touchSize | Backing field for ButtonSize. |
Properties
| Member | What it is |
|---|
Vector2 ButtonSize { get; } | The touch area size of the button. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void OnValidate() | Editor: if the size is zero, copies it from a BasicTouchScreenButton on the same object. |