Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LODGroup

LODGroup lets you group multiple Renderers into LOD levels.
Read time 6 minutesLast updated 3 days ago

Definition

public class LODGroup : Component

Remarks

This can be used to switch between different LOD levels at runtime based on size on screen.

Properties

Property

Description

animateCrossFadingSpecify if the cross-fading should be animated by time. The animation duration is specified globally as LODGroup.crossFadeAnimationDuration.
enabledAllows you to enable or disable the LODGroup.
fadeModeThe LOD fade mode used.
lastLODBillboardSpecify whether the last LOD level is a BillboardRenderer.
localReferencePointThe local reference point against which the LOD distance is calculated.
lodCountThe number of LOD levels.
sizeThe size of the LOD object in local space.

Static Properties

Property

Description

crossFadeAnimationDurationThe cross-fading animation duration in seconds. ArgumentException will be thrown if it is set to zero or a negative value.

Methods

Method

Description

GetLODsReturns the array of LODs.
RecalculateBoundsRecalculate the bounding region for the LODGroup (Relatively slow, do not call often).
SetLODsSet the LODs for the LOD group. This will remove any existing LODs configured on the LODGroup.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.