Class SpawnerNode
A node that creates a SpawnerWorker in order to generate objects depending on the geo location.
Inheritance
XNode.Node
SpawnerNode
Implements
Inherited Members
Namespace: Holoride.ElasticSDK.Graph.Spawners
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
[Serializable]
[DefaultNodeColor("#FF00DD")]
[HelpURL("http://localhost:8080/articles/Procedural-Generation/Graph-Node-Overview.html#spawner")]
public abstract class SpawnerNode : Node<SpawnerNode>, IPipelineNode
Fields
Extents
The edge length of the square region around the player's position where objects get spawned.
Declaration
[Tooltip("The edge length of the square region around the player's position where objects get spawned.")]
[FormerlySerializedAs("extents")]
[SerializeField]
protected float Extents
Field Value
Type | Description |
---|---|
float |
Properties
CellSize
Gets the edge length of each squared cell.
Declaration
protected virtual double CellSize { get; }
Property Value
Type | Description |
---|---|
double |
IsUnconstrained
Gets a value indicating whether the extents of this spawner are always unclamped.
Declaration
public virtual bool IsUnconstrained { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
GeneratePipelineWorker()
Generates a pipeline worker.
Declaration
public abstract IPipelineWorker GeneratePipelineWorker()
Returns
Type | Description |
---|---|
IPipelineWorker |