BakeLODGroupGrouper
A class in Root.Township, Alta.Utilities.
Bake-time component that merges the LODGroups of its children into one LODGroup on this object. The impostor baking step is empty in this build.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
MonoBehaviour,IBakeable
Constructors
| Member | What it is |
|---|---|
BakeLODGroupGrouper() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private int axisFrames | Impostor setting: frames per axis (default 16). |
private bool btnBake | Inspector button that runs Bake. |
private bool forceBakeEveryTime | Impostor setting: probably rebakes the impostor on every bake. Unused in this build. |
private ImpostorType impostorType | Impostor setting: projection type, octahedron by default. |
private bool isBakingImpostor | Whether Bake also bakes an impostor (on by default). |
private LODReplacement lodReplacement | Impostor setting: which LOD level the impostor replaces, the culled level by default. |
private int pixelPadding | Impostor setting: padding in pixels (default 32). |
private int textureSize | Impostor setting: texture size in pixels (default 1024). |
Properties
| Member | What it is |
|---|---|
bool IsBaked { get; set; } | Set to true once Bake has run. |
Methods
| Member | What it is |
|---|---|
void Bake() | Merges child LOD groups level by level into one on this object, removes the child groups, and keeps each level's transition height below the one before. |