Skip to main content

Glyph

A class in Root.Township, Alta.Pages.

A hashed sprite asset that can be stamped onto a page (book or paper). Stored under Pages/Glyphs; placement is held by its nested Positioning class.

Constructors​

MemberWhat it is
Glyph()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
const float PositionIntervalStep a glyph's position is rounded to and synced at (0.01 of page width).
const float RotationIntervalStep a glyph's rotation is rounded to, in degrees (10).
const float ScaleIntervalStep a glyph's scale is rounded to (0.1).
const float ScaleMaximumLargest allowed glyph scale (4.5).
const float ScaleMinimumSmallest allowed glyph scale (0.25).
1 private and internal field
MemberWhat it is
private Sprite spriteBacking field for Sprite, the image drawn for this glyph on a page.

Properties​

MemberWhat it is
Sprite Sprite { get; }The sprite drawn for this glyph.

Used in​

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