PooledMeshReplaceObjectDefinition
A class in Root.Township, the global namespace.
Pooled object definition whose instances are MeshReplacePooledObjects given a set mesh and material when requested.
- Listed in Global namespace: P
- Inherits or implements
PooledObjectDefinition - Derived types
PooledMeshReplaceObjectDefinition.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
PooledMeshReplaceObjectDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
bool Bake(IEnumerable<AtlasDefinition> atlasDefinitions) | Applies the first matching atlas to the mesh and material and stores the baked result. Returns false if none match. |
override PooledObject Get(Vector3 position, Quaternion rotation) | Gets a pooled object and gives it this mesh and material. Logs an error if the prefab isn't a mesh replace object. |
static PooledMeshReplaceObjectDefinition GetOrCreate(string name, out bool wasCreated) | Stub in this build: always returns null. |