A class in Root.Township, the global namespace.
Build-time bake step that sets a LODGroup's screen transition heights per platform.
Constructors
| Member | What it is |
|---|
PlatformLODModifier() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private LODGroup lodGroup | The LOD group being changed. |
private PlatformLODModifier.PlatformDetails[] platformDetails | Transition heights per platform, one per LOD. |
Methods
| Member | What it is |
|---|
override void Bake(bool isSaving) | Applies the transition heights of the first matching platform entry to the LOD group. |
1 private and internal method
| Member | What it is |
|---|
private void OnValidate() | Finds the LOD group, sizes each height list to the LOD count and keeps heights decreasing. |