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
-
session The session behaviour.
◆ SetConfiguration()
void NRKernal.NRSessionManager.SetConfiguration | ( | NRSessionConfig | config | ) |
Sets a configuration.
- Parameters
-
config The configuration.
Property Documentation
◆ CenterCameraAnchor
|
get |
Gets the center camera anchor.
The center camera anchor.
◆ IsInitialized
|
get |
Gets a value indicating whether this object is initialized.
True if this object is initialized, false if not.
◆ LeftCameraAnchor
|
get |
Gets the left camera anchor.
The left camera anchor.
◆ LostTrackingReason
|
get |
Current lost tracking reason.
The lost tracking reason.
◆ NativeAPI
|
getset |
Gets or sets the native a pi.
The native a pi.
◆ NRHMDPoseTracker
|
get |
Gets or sets the nrhmd pose tracker.
The nrhmd pose tracker.
◆ NRMetrics
|
getset |
Gets or sets the nr metrics.
The nr metrics.
◆ NRSessionBehaviour
|
get |
Gets or sets the nr session behaviour.
The nr session behaviour.
◆ NRSwapChainMan
|
getset |
Gets or sets the nr swapchain manager.
The nr swapchain manager.
◆ RightCameraAnchor
|
get |
Gets the right camera anchor.
The right camera anchor.
◆ SessionState
|
get |
Gets or sets the state of the session.
The session state.
◆ TrackableFactory
|
getset |
Gets or sets the trackable factory.
The trackable factory.
◆ VirtualDisplayer
|
getset |
Gets or sets the virtual displayer.
The virtual displayer.