InfoDisplayerAccess
A class in Root.Township, the global namespace.
A debug text asset that code writes a line of text to and an InfoDisplayer shows on screen. Wraps the text in a set prefix and suffix.
- Listed in Global namespace: I to L
- Inherits or implements
ScriptableObject - Nested types
AccessUpdate - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
InfoDisplayerAccess() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Properties
Events
| Member | What it is |
|---|---|
event InfoDisplayerAccess.AccessUpdate EnabledUpdated | Raised when IsEnabled changes. |
event InfoDisplayerAccess.AccessUpdate TextUpdated | Raised when the text changes. |
Methods
| Member | What it is |
|---|---|
void SetEnabled(bool isEnabled) | Shows or hides the text. |
void UpdateText(string text) | Sets the text (adding prefix and suffix) and enables it. Ignores changes that differ only in case. |
Used in
Members of other types that take, return or hold a InfoDisplayerAccess: