A class in Root.Township, the global namespace.
Fader for a network entity: when the scene destroys the entity (not on chunk unload), it spawns the fade-out effect for its meshes. Client only; does nothing on a headless server.
Constructors
| Member | What it is |
|---|
FadeInOutNetworkEntity() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private NetworkEntity entity | Backing field for Entity, set from the same GameObject. |
Properties
Methods
| Member | What it is |
|---|
protected override void Awake() | Client: copies the fade material and hooks the entity's DestroyedByScene event to FadeOut. |
1 private and internal method
| Member | What it is |
|---|
private void FadeOut(NetworkEntity entity, bool isUnload) | Handler for DestroyedByScene. Plays the fade-out unless the entity is only being unloaded. |