Skip to main content

ObjectVisualDouble

A class in Root.Township, the global namespace.

Pooled object that shows ghost copies of a set of mesh renderers, for example while an item moves into a dock.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private List<PooledObject> activeGhostsGhosts currently shown.
private PooledObjectDefinition rendererGhostDefinitionPool definition used to get each RendererGhost.

Methods​

MemberWhat it is
void ReleaseActive()Returns all current ghosts to the pool.
void SetupRenderers(IEnumerable<MeshRenderer> renderers)Releases old ghosts, then makes a ghost of each active renderer and parents it to this object.