Skip to main content

ChunkEffect

An abstract class in Root.Township, Alta.Chunks.

Asset for something that happens when the local player enters or leaves a LocationChunk, such as darkness or occlusion changes. Client only.

Constructors​

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

Methods​

MemberWhat it is
abstract void Apply(bool isContained)Called when the chunk's HasLocalPlayerChanged fires. isContained is true when the local player is now in the chunk.

Used in​

Members of other types that take, return or hold a ChunkEffect: