Skip to main content

RendererGhost

A class in Root.Township, the global namespace.

Pooled copy of a mesh renderer, given the same mesh and materials; used by ObjectVisualDouble to show a ghost of an object.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private MeshFilter targetFilterMesh filter that gets the mesh.
private MeshRenderer targetRendererRenderer that gets the materials.

Methods​

MemberWhat it is
void Setup(MeshRenderer renderer)Copies the source renderer's shared materials and mesh.