Scripting API

LODGroup

class in UnityEngine · UnityEngine.CoreModule · inherits from Component

13 of 13 of Unity's membersUnity's documentation
In Tassix

Levels of detail: per camera, the first level whose screen-relative height threshold the group's size (at its distance, over the LOD bias) reaches is drawn, the others aren't; below the last threshold none is. Levels switch outright (cross-fading isn't drawn).

Properties 8

bool animateCrossFading { get; set; }
static float crossFadeAnimationDuration { get; set; }
bool enabled { get; set; }
LODFadeMode fadeMode { get; set; }
bool lastLODBillboard { get; set; }
Vector3 localReferencePoint { get; set; }
int lodCount { get; }
float size { get; set; }

Methods 4

void ForceLOD(int index)

Shows the given level to every camera (-1 lets the cameras choose again).

LOD[] GetLODs()
void RecalculateBounds()

Fits the reference point and size to the renderers' bounds.

void SetLODs(LOD[] lods)

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.