Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

WorldManager.GetNativeISpatialCoordinateSystemPtr

public static IntPtr GetNativeISpatialCoordinateSystemPtr();

Returns

IntPtr Pointer to Windows::Perception::Spatial::ISpatialCoordinateSystem.

Description

Return the native pointer to Windows::Perception::Spatial::ISpatialCoordinateSystem which was retrieved from an Windows::Perception::Spatial::ISpatialStationaryFrameOfReference object underlying the Unity World Origin.

The caller is responsible for releasing the reference after being done with it. This function may return null if there is no ISpatialCoordinateSystem available.