Skip to main content

ActionGlyphsPlacer

A class in Root.Township, the global namespace.

Shows a profession skill's practice glyphs as a vertical stack of pooled ActionGlyphAnimator objects inside a set area. Used by SkillShrineTestingArea.

Constructors​

MemberWhat it is
ActionGlyphsPlacer()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private PooledObjectDefinition actionGlyphPoolPool the glyph objects come from.
private List<ActionGlyphAnimator> activeActionGlyphsThe glyphs shown now.
private int debugCountNumber of sample positions drawn in the editor gizmo.
private Vector2 maxSizeSize of the area the glyphs are stacked in.

Methods​

MemberWhat it is
void ActiveSkill(ProfessionSkill skill)Shows the skill's practice glyphs, reusing existing glyphs where possible and releasing extras.
void Close()Releases every shown glyph.
void Reposition()Spaces the glyphs evenly from top to bottom of maxSize and scales them by one over the count.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Editor: draws the area and debugCount sample glyph positions.

Used in​

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