Exemplo n.º 1
0
    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();
        }
    }
Exemplo n.º 2
0
        void CommonInit()
        {
            // Configure everything
            ConfigureView();
            ConfigureMeshController();
            ConfigureMetal();

            // Initialize 6D SDK
            SDPlugin.SixDegreesSDK_Initialize();

            MeshController.ShowMesh();
        }
Exemplo n.º 3
0
    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);
        unsafe
        {
            SDPlugin.SixDegreesSDK_Initialize();
        }

        StartCoroutine(InitializeCoroutine());
    }