Class SpawnCandidate
A spawn candidate is asynchronously created on every terrain update covering the full extents of the TerrainCanvas. As the player gets closer to the candidate than the extents of the spawner, the actual GameObject is instantiated. By deriving from this class, information can be passed from the DefinePoses to the CreateObject method of the Spawner.
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public class SpawnCandidate
Constructors
SpawnCandidate(GlobalPose)
Instantiates the candidate at a given pose.
Declaration
public SpawnCandidate(GlobalPose pose)
Parameters
Type | Name | Description |
---|---|---|
GlobalPose | pose | The pose of the candidate. |
SpawnCandidate(GlobalPosition, Quaternion)
Instantiates the candidate at a given position and rotation.
Declaration
public SpawnCandidate(GlobalPosition position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
GlobalPosition | position | The position of the candidate. |
Quaternion | rotation | The rotation of the candidate. |
Fields
Pose
The pose where this object gets spawned.
Declaration
public GlobalPose Pose
Field Value
Type | Description |
---|---|
GlobalPose |