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.
- Listed in Global namespace: M to O
- Inherits or implements
PooledObject - Derived types
ParticleMeshReplacePooledObject,RendererMeshReplacePooledObject
Constructors
| Member | What it is |
|---|---|
protected MeshReplacePooledObject() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
| Member | What it is |
|---|---|
abstract void Setup(Mesh mesh, Material material) | Applies the given mesh and material to the object. |