Skip to main content

ITouchScreenButton

An interface in Root.Township, the global namespace.

A button on an in-world touch screen menu that can be pressed and released.

Properties​

MemberWhat it is
Vector2 ButtonSize { get; }Size of the button's touch area.
GameObject gameObject { get; }The button's game object.
bool IsEnabled { get; set; }Whether the button can be pressed.
bool State { get; }Whether the button is pressed.
Transform transform { get; }The button's transform.

Methods​

MemberWhat it is
void Press()Presses the button.
void Release()Releases the button.

Used in​

Members of other types that take, return or hold a ITouchScreenButton: