Skip to main content

OcclusionChunkEffectData

A class in Root.Township, Alta.Chunks.

Chunk effect asset that sets how occlusion culling works while the local player is in the chunk: normal, portal based or off.

Constructors​

MemberWhat it is
OcclusionChunkEffectData()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private OcclusionMode modeThe occlusion mode for the chunk.

Methods​

MemberWhat it is
override void Apply(bool isContained)When the chunk contains the player, switches portal culling on or off by mode. None also turns off the player camera's occlusion culling.
1 private and internal method
MemberWhat it is
private void DisableForPlayer(PlayerController playerController)Turns off occlusion culling on the player's camera once the local player appears.