Class PrefabSpawningController
Handles the initial spawning and positioning as well as the repositioning of the training assembly.
Inheritance
System.Object
PrefabSpawningController
Namespace: Others
Assembly: Assembly-CSharp.dll
Syntax
public class PrefabSpawningController : MonoBehaviour
Fields
| Improve this Doc View SourceinstantiatedPrefab
Reference to the spawned training assembly.
Declaration
public static GameObject instantiatedPrefab
Field Value
Type | Description |
---|---|
GameObject | Gets created on runtime. |
objectWasSpawned
Is the prefab spawned?
Declaration
public bool objectWasSpawned
Field Value
Type | Description |
---|---|
System.Boolean | True if spawned. |
placementPoseIsValid
Is the attempted placement pose valid?
Declaration
public bool placementPoseIsValid
Field Value
Type | Description |
---|---|
System.Boolean | True if valid. |
Methods
| Improve this Doc View SourceGetSpawnedObject()
Returns the instantiated prefab.
Declaration
public GameObject GetSpawnedObject()
Returns
Type | Description |
---|---|
GameObject | The instantiated prefab. |
Reposition()
Restarts the positioning process to make reposition of the prefab possible.
Declaration
public void Reposition()
Events
| Improve this Doc View SourceprefabSpawned
Event that is triggered after the assembly is spawned.
Declaration
public static event Action prefabSpawned
Event Type
Type | Description |
---|---|
System.Action |
RepositionPrefab
Event that is triggered after repositioning of the training assembly.
Declaration
public static event Action RepositionPrefab
Event Type
Type | Description |
---|---|
System.Action |