Spawner Class

Class Spawner defines a component which can instantiate and destroy objects on all clients in the Room simultaneously.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public class Spawner : CommunicationBridge
Inheritance
Object    Object    Component    Behaviour    MonoBehaviour    CommunicationBridge    Spawner

Remarks

Methods

Despawn Invoked when a GameObject has been spawned by a User in the Room.
Spawn(Int32) Spawn an new game object from index for all Users in the Room.
Spawn(String) Spawn an new object from name for all Users in the Room.
Spawn(Int32, Vector3) Spawn an new game object from index for all Users in the Room with position.
Spawn(String, Vector3) Spawn an new object from name for all Users in the Room with position.
Spawn(Int32, Vector3, Quaternion) Spawn an new game object from index for all Users in the Room using position and rotation.
Spawn(Int32, Vector3, Vector3) Spawn an new game object from index for all Users in the Room using position and rotation.
Spawn(String, Vector3, Quaternion) Spawn an new object from name for all Users in the Room using position and rotation.
Spawn(String, Vector3, Vector3) Spawn an new object from name for all Users in the Room using position and rotation.
Spawn(Int32, Vector3, Quaternion, Vector3) Spawn an new object for all Users in the Room using position, rotation, and scale.
Spawn(Int32, Vector3, Vector3, Vector3) Spawn an new game object from index for all Users in the Room using position, rotation, and scale.
Spawn(String, Vector3, Quaternion, Vector3) Spawn an new object from name for all Users in the Room using position, rotation, and scale.
Spawn(String, Vector3, Vector3, Vector3) Spawn an new object from name for all Users in the Room using position, rotation, and scale.
Start 

Fields

ForceSync When true, spawn previously spawned objects on joining client(s).
OnObjectDespawn Invoked before GameObject gets despawned by a User in the Room.
OnObjectSpawn Invoked after GameObject has been spawned by a User in the Room.
SpawnableObjects List of GameObjects which can be spawned during the game.
SpawnedObjects List of all currently spawned GameObjects in the Room.

See Also