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.
- Listed in World, chunks and saving
- Inherits or implements
ScriptableObject - Derived types
MasterTerrainChunkEffectData,OcclusionChunkEffectData,UnloadAllLandmarks,DarknessChunkData
Constructors
| Member | What it is |
|---|---|
protected ChunkEffect() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What 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: