/// <summary> /// Initializes the LibPlacenote SDK singleton class. /// </summary> private void Init() { #if UNITY_EDITOR mInitialized = true; #endif PNInitParamsUnity initParams = new PNInitParamsUnity(); // Fill in your API Key here initParams.apiKey = apiKey; initParams.appBasePath = Application.streamingAssetsPath + "/Placenote"; initParams.mapPath = Application.persistentDataPath; #if !UNITY_EDITOR PNInitialize(ref initParams, OnInitialized, IntPtr.Zero); #endif }
/// <summary> /// Initializes the LibPlacenote SDK singleton class. /// </summary> private void Init() { #if UNITY_EDITOR mInitialized = true; #endif PNInitParamsUnity initParams = new PNInitParamsUnity(); // Fill in your API Key here initParams.apiKey = apiKey; initParams.appBasePath = Application.streamingAssetsPath + "/Placenote"; initParams.mapPath = Application.persistentDataPath; mRotUnityCam2RGB = Matrix4x4.TRS(new Vector3(0, 0, 0), Quaternion.AngleAxis(-90, new Vector3(0, 0, 1)), new Vector3(1, 1, 1)); #if !UNITY_EDITOR PNInitialize(ref initParams, OnInitialized, IntPtr.Zero); #endif }
private static extern int PNInitialize( ref PNInitParamsUnity initParams, PNResultCallback cb, IntPtr context );