ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


GetNativePtr()

This method returns an IntPtr representing the native pointer to the XR device if one is available, otherwise the value will be IntPtr.Zero.
読み終わるまでの所要時間 1 分最終更新 22日前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
注意
Removed. XRDevice.GetNativePtr is deprecated, and should no longer be used. This API was only supported for legacy VR.
public static nint GetNativePtr()

Returns

Type

Description

IntPtrThe native pointer to the XR device.

Remarks

This native pointer can be used along with other plugins or extensions to access additional details or functionality related to the XR device.