Skip to main content

TouchScreenButton

A class in Root.Township, Alta.Meta.UI.

A UI Button with a touch area size, for the in-world touch screen menus.

Constructors​

MemberWhat it is
TouchScreenButton()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private Vector2 touchSizeBacking field for ButtonSize.

Properties​

MemberWhat it is
Vector2 ButtonSize { get; }The touch area size of the button.

Methods​

1 private and internal method
MemberWhat it is
private void OnValidate()Editor: if the size is zero, copies it from a BasicTouchScreenButton on the same object.