This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arcore@4.2.10/Runtime/RcoApi.cs

24 lines
731 B
C#
Raw Normal View History

using System;
using System.Runtime.InteropServices;
namespace UnityEngine.XR.ARCore
{
internal static class RcoApi
{
#if UNITY_ANDROID && !UNITY_EDITOR
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain")]
public static extern int Retain(IntPtr ptr);
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_release")]
public static extern int Release(IntPtr ptr);
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain_count")]
public static extern int RetainCount(IntPtr ptr);
#else
public static int Retain(IntPtr ptr) => 0;
public static int Release(IntPtr ptr) => 0;
public static int RetainCount(IntPtr ptr) => 0;
#endif
}
}