This version of Unity is unsupported.

WorldAnchor.GetNativeSpatialAnchorPtr

Declaration

public IntPtr GetNativeSpatialAnchorPtr();

Returns

IntPtr The native pointer to the Windows.Perception.Spatial.SpatialAnchor COM object.

Description

Retrieve a native pointer to the Windows.Perception.Spatial.SpatialAnchor COM object. This function calls IUnknown::AddRef on the pointer before returning it. The pointer must be released by calling IUnknown::Release.