A class in Root.Township, the global namespace.
Lets an effect object leave normal chunking: on the server it stops being saved and moves to the global chunk whenever it has no parent.
Constructors
| Member | What it is |
|---|
UnchunkedEffectPlayer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private PositionHandler onPlay | Position event fired by Play. |
Methods
| Member | What it is |
|---|
void GoUnchunked() | Server: marks the prefab as not saved, moves the entity to the global chunk if it has no chunking parent, and watches parent changes. |
void Play() | Invokes onPlay with this object's position. |
1 private and internal method