Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

XRReferencePointSubsystem

class in UnityEngine.Experimental.XR

/

Inherits from:Experimental.IntegratedSubsystem

/

Implemented in:UnityEngine.XRModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides methods and properties that allow for querying, creating, and removing of reference points. These reference points are cues to the XRSessionSubsystem that indicate areas of interest in the environment which helps assure that tracking of these points remains accurate.

Properties

LastUpdatedFrameThe frame during which the reference points were last updated.

Public Methods

GetAllReferencePointsRetrieves all ReferencePoints added by calls to XRReferencePointSubsystem.TryAddReferencePoint.
TryAddReferencePointAttempt to add a ReferencePoint that gets tracked by the device.
TryGetReferencePointAttempt to retrieve a ReferencePoint.
TryRemoveReferencePointAttempt to remove a ReferencePoint getting tracked by the device.

Events

ReferencePointUpdatedRaised each frame for each ReferencePoint that had the values of its position, rotation, or both changed enough by the device correcting its understanding of where the point should be located in Unity space.

Inherited Members

Public Methods

DestroyDestroys this instance of a subsystem.
StartStarts an instance of a subsystem.
StopStops an instance of a subsystem.

Did you find this page useful? Please give it a rating: