Skip to main content

MeshReplacePooledObject

An abstract class in Root.Township, the global namespace.

Base for pooled objects that take a mesh and material when handed out, such as ParticleMeshReplacePooledObject and RendererMeshReplacePooledObject.

Constructors​

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

Methods​

MemberWhat it is
abstract void Setup(Mesh mesh, Material material)Applies the given mesh and material to the object.