A class in Root.Township, Alta.UserInterface.
A labelled interact point whose box changes colour when pressed and when disabled.
Constructors
| Member | What it is |
|---|
FeedbackInteractionPoint() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private Color baseColor | The box's colour at enable time. |
private Renderer boxRenderer | Renderer of the box that changes colour. |
private Color disabledColor | Colour while disabled (grey by default). |
private Color interactedColor | Colour while pressed. |
private Material material | The box's material instance. |
Methods
| Member | What it is |
|---|
protected override void OnButtonDisabled() | Shows the disabled colour, or the base colour when enabled again. |
protected override void OnEnable() | Gets the box material and its base colour and hooks the press and release events. |
2 private and internal methods
| Member | What it is |
|---|
private void OnInteracted() | Shows the pressed colour. |
private void OnReleased() | Goes back to the base colour. |