SpatialGraphNode.FromStaticNodeId(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creating a SpatialGraphNode with given static node id, or return null upon failure.
public static Microsoft.MixedReality.OpenXR.SpatialGraphNode FromStaticNodeId (Guid id);
static member FromStaticNodeId : Guid -> Microsoft.MixedReality.OpenXR.SpatialGraphNode
Public Shared Function FromStaticNodeId (id As Guid) As SpatialGraphNode
Parameters
- id
- Guid
A GUID represents a spatial graph static node.
Returns
Returns either a valid SpatialGraphNode object if succeeded or null if the given static node id cannot be found at the moment.
Remarks
The application typically obtains the Guid for the static node from other spatial graph driver APIs. For example, a static node id representing the tracking of a QR code can be obtained from HoloLens 2 QR code library.