NRSDKApiForUnity
Classes
NRSessionManager

Inherits SingleTon< NRSessionManager >.

Public Member Functions

void CreateSession (NRSessionBehaviour session)
 
void SetConfiguration (NRSessionConfig config)
 
void Recenter ()
 
void StartSession ()
 
void DisableSession ()
 
void ResumeSession ()
 
void DestroySession ()
 
void ReleaseSDK ()
 

Public Attributes

Func< NRKernalError, string > ErrorMessageGenerator = null
 

Static Public Attributes

static HMDPoseTrackerEvent OnHMDPoseReady
 
static HMDPoseTrackerEvent OnHMDLostTracking
 
static HMDPoseTrackerModeChangeEvent OnChangeTrackingMode
 
static GlassesEvent OnGlassesStateChanged
 
static GlassesDisconnectEvent OnGlassesDisconnect
 

Properties

LostTrackingReason LostTrackingReason [get]
 
SessionState SessionState [get]
 
NRSessionBehaviour NRSessionBehaviour [get]
 
NRHMDPoseTracker NRHMDPoseTracker [get]
 
NativeInterface NativeAPI [getset]
 
NRSwapChainManager NRSwapChainMan [getset]
 
NRMetrics NRMetrics [getset]
 
NRVirtualDisplayer VirtualDisplayer [getset]
 
NRTrackableManager TrackableFactory [getset]
 
Transform CenterCameraAnchor [get]
 
Transform? LeftCameraAnchor [get]
 
Transform? RightCameraAnchor [get]
 
bool IsInitialized [get]
 

Events

static SessionError OnKernalError
 

Detailed Description

Manages AR system state and handles the session lifecycle. this class, application can create a session, configure it, start/pause or stop it.

Member Function Documentation

◆ CreateSession()

void NRKernal.NRSessionManager.CreateSession ( NRSessionBehaviour  session)

Creates a session.

Parameters
sessionThe session behaviour.

◆ SetConfiguration()

void NRKernal.NRSessionManager.SetConfiguration ( NRSessionConfig  config)

Sets a configuration.

Parameters
configThe configuration.

Property Documentation

◆ CenterCameraAnchor

Transform NRKernal.NRSessionManager.CenterCameraAnchor
get

Gets the center camera anchor.

The center camera anchor.

◆ IsInitialized

bool NRKernal.NRSessionManager.IsInitialized
get

Gets a value indicating whether this object is initialized.

True if this object is initialized, false if not.

◆ LeftCameraAnchor

Transform? NRKernal.NRSessionManager.LeftCameraAnchor
get

Gets the left camera anchor.

The left camera anchor.

◆ LostTrackingReason

LostTrackingReason NRKernal.NRSessionManager.LostTrackingReason
get

Current lost tracking reason.

The lost tracking reason.

◆ NativeAPI

NativeInterface NRKernal.NRSessionManager.NativeAPI
getset

Gets or sets the native a pi.

The native a pi.

◆ NRHMDPoseTracker

NRHMDPoseTracker NRKernal.NRSessionManager.NRHMDPoseTracker
get

Gets or sets the nrhmd pose tracker.

The nrhmd pose tracker.

◆ NRMetrics

NRMetrics NRKernal.NRSessionManager.NRMetrics
getset

Gets or sets the nr metrics.

The nr metrics.

◆ NRSessionBehaviour

NRSessionBehaviour NRKernal.NRSessionManager.NRSessionBehaviour
get

Gets or sets the nr session behaviour.

The nr session behaviour.

◆ NRSwapChainMan

NRSwapChainManager NRKernal.NRSessionManager.NRSwapChainMan
getset

Gets or sets the nr swapchain manager.

The nr swapchain manager.

◆ RightCameraAnchor

Transform? NRKernal.NRSessionManager.RightCameraAnchor
get

Gets the right camera anchor.

The right camera anchor.

◆ SessionState

SessionState NRKernal.NRSessionManager.SessionState
get

Gets or sets the state of the session.

The session state.

◆ TrackableFactory

NRTrackableManager NRKernal.NRSessionManager.TrackableFactory
getset

Gets or sets the trackable factory.

The trackable factory.

◆ VirtualDisplayer

NRVirtualDisplayer NRKernal.NRSessionManager.VirtualDisplayer
getset

Gets or sets the virtual displayer.

The virtual displayer.