LODBaker
A class in Root.Township, the global namespace.
Client: merges the mesh renderers of each LOD level in a LODGroup into one mesh per material, to cut draw calls. Does nothing on the headless server.
- Listed in Global namespace: I to L
- Inherits or implements
MonoBehaviour - Nested types
MeshBase
Constructors
| Member | What it is |
|---|---|
LODBaker() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
Methods
| Member | What it is |
|---|---|
void Bake() | Client, once: combines each LOD's mesh renderers by material into new child renderers and hides the originals. Preserved renderers are kept. |
3 private and internal methods
Used in
Members of other types that take, return or hold a LODBaker: