Skip to main content

UnchunkedEffectPlayer

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​

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

Fields​

1 private and internal field
MemberWhat it is
private PositionHandler onPlayPosition event fired by Play.

Methods​

MemberWhat 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
MemberWhat it is
private void UpdateParent(NetworkEntity topic, NetworkEntity oldParent, NetworkEntity newParent)Moves the entity back to the global chunk when it loses its parent.