Skip to content

GEM_ClientExperience

← Back to Runtime | Home

Namespace: wevr.GEM.Runtime

Type: Class

Inherits: NetworkBehaviour

Description

This script handles a client's runtime of GEM It should be part of a client's player pawn.

Nested Types

  • PlayerInfo

Properties

ClientInstances

static List< GEM_ClientExperience > ClientInstances { get; set; }

An array of all client experiences currently connected to the experience.

CurrentBoundsState

BoundsState CurrentBoundsState { get; set; }

The client's bound state.

IsOffloading

bool IsOffloading { get; set; }

LocalInstance

static GEM_ClientExperience LocalInstance { get; set; }

The local instance of the client experiences.

Ready

bool Ready { get; set; }

If the clientexperience finished initializing by the owner and is ready.

inBounds

bool inBounds { get; set; }

playerInfo

PlayerInfo playerInfo { get; set; }

Synchronized information about this client's owner.

Events

OnOutOfBoundsChange

event Action< BoundsState > OnOutOfBoundsChange

Fires when the bounds state of the player changes. Should be used to control activation of Chaperone effects.

Methods

GetClientWithClientId

static bool GetClientWithClientId(ulong id, out GEM_ClientExperience foundClient)

GetClientWithGemId

static bool GetClientWithGemId(int gemUserId, out GEM_ClientExperience foundClient)

Get the GEM_ClientExperience instance of the provided GemUserID.

OffloadComplete_RPC

void OffloadComplete_RPC()

Server tells us that this client's user has offloaded successfully with GEM.

OnNetworkDespawn

override void OnNetworkDespawn()

OnNetworkSpawn

override void OnNetworkSpawn()

TerminateClient_RPC

void TerminateClient_RPC()

Called to terminate this client.

Fields

playerCamera

Camera playerCamera

synchronizedHeadTransform

Transform synchronizedHeadTransform