FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Core.FmarDeviceManager Class Reference

Core device manager which manages all headsets, trackers, and controllers from all XR Providers. More...

Inheritance diagram for FMAR.Core.FmarDeviceManager:

Public Member Functions

void SetHeadset (Headset headset)
 Sets the headset and triggers the onHeadsetSet event.
 
void AddCommonHand (CommonHand commonHand)
 Adds a common hand to the device manager and creates a corresponding controller.
 
void AddNonHandController (Controller controller)
 Adds a non-hand controller to the device manager.
 
void RemoveNonHandController (Controller controller)
 Removes a non-hand controller from the device manager.
 

Static Public Attributes

static Action< HeadsetonHeadsetSet
 
static Action< CommonHandonCommonHandAdded
 

Properties

static FmarDeviceManager Instance [get]
 
Headset Headset [get]
 
bool HasLeftController [get]
 
Controller LeftController [get]
 
bool HasRightController [get]
 
Controller RightController [get]
 
static Material LineRendMaterial [get]
 

Detailed Description

Core device manager which manages all headsets, trackers, and controllers from all XR Providers.

Member Function Documentation

◆ AddCommonHand()

void FMAR.Core.FmarDeviceManager.AddCommonHand ( CommonHand commonHand)
inline

Adds a common hand to the device manager and creates a corresponding controller.

Parameters
commonHandThe common hand to add.

◆ AddNonHandController()

void FMAR.Core.FmarDeviceManager.AddNonHandController ( Controller controller)
inline

Adds a non-hand controller to the device manager.

Parameters
controllerThe controller to add.

◆ RemoveNonHandController()

void FMAR.Core.FmarDeviceManager.RemoveNonHandController ( Controller controller)
inline

Removes a non-hand controller from the device manager.

Parameters
controllerThe controller to remove.

◆ SetHeadset()

void FMAR.Core.FmarDeviceManager.SetHeadset ( Headset headset)
inline

Sets the headset and triggers the onHeadsetSet event.

Parameters
headsetThe headset to set.

Member Data Documentation

◆ onCommonHandAdded

Action<CommonHand> FMAR.Core.FmarDeviceManager.onCommonHandAdded
static

◆ onHeadsetSet

Action<Headset> FMAR.Core.FmarDeviceManager.onHeadsetSet
static

Property Documentation

◆ HasLeftController

bool FMAR.Core.FmarDeviceManager.HasLeftController
get

◆ HasRightController

bool FMAR.Core.FmarDeviceManager.HasRightController
get

◆ Headset

Headset FMAR.Core.FmarDeviceManager.Headset
get

◆ Instance

FmarDeviceManager FMAR.Core.FmarDeviceManager.Instance
staticget

◆ LeftController

Controller FMAR.Core.FmarDeviceManager.LeftController
get

◆ LineRendMaterial

Material FMAR.Core.FmarDeviceManager.LineRendMaterial
staticget

◆ RightController

Controller FMAR.Core.FmarDeviceManager.RightController
get

The documentation for this class was generated from the following file: