Skip to main content

ForceLoadChunk

A class in Root.Township, the global namespace.

Keeps a chunk force loaded while this component is enabled. It disables itself on Awake, so something must enable it.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Chunk chunkThe chunk on this object.

Methods​

3 private and internal methods
MemberWhat it is
private void Awake()Caches the Chunk and disables the component.
private void OnDisable()Clears IsForceLoaded on the chunk in play mode.
private void OnEnable()Sets IsForceLoaded on the chunk in play mode.