Skip to main content

InteriorRendererCollector

A class in Root.Township, the global namespace.

Trigger that changes the LOD transition heights of LOD groups while they are inside it, and puts them back when they leave.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private List<LODGroup> addedGroupLOD groups currently changed by this trigger.
private float lodMultiplierStrength of the change. Defaults to 3.

Properties​

MemberWhat it is
protected float LodMultiplier { get; set; }Gets or sets lodMultiplier.

Methods​

2 private and internal methods
MemberWhat it is
private void OnTriggerEnter(Collider other)Raises each LOD transition height of an entering group to the power one over lodMultiplier, once per group.
private void OnTriggerExit(Collider other)Undoes the change when the group leaves.