PlatformDistanceLODModifier
A class in Root.Township, the global namespace.
Build-time bake step that sets a DistanceLODGroup's switch distances per platform.
Constructors
| Member | What it is |
|---|
PlatformDistanceLODModifier() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|
override void Bake(bool isSaving) | Applies the distances 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 distance list to the LOD count and keeps distances increasing. |