A class in Root.Township, Alta.Pages.
One glyph image on a rendered page (book or sign page). PageRenderer loads glyph positions into these child objects; works in edit mode too.
Constructors
| Member | What it is |
|---|
GlyphInstance() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private Glyph.Positioning details | Backing field for Details. |
private Image image | The UI image the glyph sprite is put on, cached on first load. |
private bool isCalibrating | Serialized flag not read by this class. |
Properties
| Member | What it is |
|---|
Glyph.Positioning Details { get; } | The glyph and where it sits on the page. |
Methods
| Member | What it is |
|---|
void CalculateFromTransform() | Fills Details from the object's current transform, creating it if needed. |
bool Load(Glyph.Positioning details) | Shows a glyph: sets the sprite and name and applies its position. With no glyph, hides the object. Returns false if it was already hidden. |
2 private and internal methods
| Member | What it is |
|---|
private void OnValidate() | In the editor (not playing), validates and reloads Details. |
private void Start() | Empty. |
Used in
Members of other types that take, return or hold a GlyphInstance: