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
| Member | What it is |
|---|
ForceLoadChunk() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private Chunk chunk | The chunk on this object. |
Methods
3 private and internal methods
| Member | What 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. |