Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLODSettings(float, int, bool)

Sets the lodBias and maximumLODLevel at the same time.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static void SetLODSettings(float lodBias, int maximumLODLevel, bool setDirty = true)

Parameters

lodBias

Global multiplier for the LOD's switching distance.

maximumLODLevel

A maximum LOD level. All LOD groups.

setDirty

If true, marks all views as dirty.

Remarks

If you pass in
true
for the
setDirty
parameter, Unity refreshes all views.