VRInitilizationScript Class

Summary

This script is responsible for initilizing all required components for using a VR user in ASL with a corresponding networked representation.
Namespace
ASL.VirtualReality
Base Types
graph TD Base0["LocalEventHandler"]-->Type click Base0 "/2019.CRCS-WebSite/Documentation/api/ASL.LocalEventSystem/LocalEventHandler" Base1["Photon.PunBehaviour"]-->Base0 Type["VRInitilizationScript"] class Type type-node

Syntax

public class VRInitilizationScript : LocalEventHandler

Fields

Name Constant Value Summary
DeviceToUse
The VR device to be used by the player.
origin
Starting position for the VR user
simulator
Reference to the Simulator SDK setup
steamVR
Reference to the SteamVR SDK setup

Methods

Name Value Summary
OnDestroy() void
Unsubscribes from the lcal events system to prevent a memory leak.
Inherited from LocalEventHandler
OnEnable() void
Subscribes to Local event system, when a local event is trigger the OnLocalEvent function will be called.
Inherited from LocalEventHandler
OnJoinedRoom() void
This function will attempt to call for the creation of networked representation of a VR player on connecting to a room.
OnLocalEvent(object, ASLLocalEventManager.LocalEventArgs) void
Event handler for local events relating to the creation of a VR player.
OnPhotonInstantiate(PhotonMessageInfo) void
Callback function that is triggered when an object is created via photon.
Inherited from LocalEventHandler