public void Initialize() { StringBuilder sb = new StringBuilder(16); SDPlugin.SixDegreesSDK_GetVersion(sb, sb.Capacity); SDPlugin.Version = sb.ToString(); Debug.Log("Will initialize SDK v" + SDPlugin.Version); bool initializing; #if UNITY_IOS && !UNITY_EDITOR if (SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3) { unsafe { initializing = SDPlugin.SixDegreesSDK_InitializeWithEAGL(null); } } else #endif { initializing = SDPlugin.SixDegreesSDK_Initialize(); } if (!initializing) { Debug.Log("Failed to initialize SDK. Check logs for more information."); } if (isStopped) { FindObjectOfType <SDBackcam>().enabled = true; FindObjectOfType <SDBackcam>().Awake(); FindObjectOfType <SDBackcam>().SetupBackgroundTexture(); } }