Skip to main content

PlatformLODModifier

A class in Root.Township, the global namespace.

Build-time bake step that sets a LODGroup's screen transition heights per platform.

Constructors​

MemberWhat it is
PlatformLODModifier()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private LODGroup lodGroupThe LOD group being changed.
private PlatformLODModifier.PlatformDetails[] platformDetailsTransition heights per platform, one per LOD.

Methods​

MemberWhat 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
MemberWhat it is
private void OnValidate()Finds the LOD group, sizes each height list to the LOD count and keeps heights decreasing.