Search Results for

    Show / Hide Table of Contents

    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 Source

    instantiatedPrefab

    Reference to the spawned training assembly.

    Declaration
    public static GameObject instantiatedPrefab
    Field Value
    Type Description
    GameObject

    Gets created on runtime.

    | Improve this Doc View Source

    objectWasSpawned

    Is the prefab spawned?

    Declaration
    public bool objectWasSpawned
    Field Value
    Type Description
    System.Boolean

    True if spawned.

    | Improve this Doc View Source

    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 Source

    GetSpawnedObject()

    Returns the instantiated prefab.

    Declaration
    public GameObject GetSpawnedObject()
    Returns
    Type Description
    GameObject

    The instantiated prefab.

    | Improve this Doc View Source

    Reposition()

    Restarts the positioning process to make reposition of the prefab possible.

    Declaration
    public void Reposition()

    Events

    | Improve this Doc View Source

    prefabSpawned

    Event that is triggered after the assembly is spawned.

    Declaration
    public static event Action prefabSpawned
    Event Type
    Type Description
    System.Action
    | Improve this Doc View Source

    RepositionPrefab

    Event that is triggered after repositioning of the training assembly.

    Declaration
    public static event Action RepositionPrefab
    Event Type
    Type Description
    System.Action
    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation