public void updateCameraPlaneScale()
    {
        // determine scale of the camera plane
        float scale = MetaioSDKUnity.getCameraPlaneScale();

        if (Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor)
        {
            // Windows
            cameraPlane.transform.localScale = new Vector3(-scale, scale, -scale);
        }
        else if (Application.platform == RuntimePlatform.OSXPlayer || Application.platform == RuntimePlatform.OSXEditor)
        {
            // OSX
            cameraPlane.transform.localScale = new Vector3(-scale, scale, scale);
        }
        else if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
        {
            // Android and iOS
            cameraPlane.transform.localScale = new Vector3(-scale, scale, scale);
        }
        else
        {
            Debug.LogError("Unsupported platform: " + Application.platform);
        }
    }
Exemple #2
0
    public void updateCameraPlaneScale()
    {
        // determine scale of the camera plane
        float scale = MetaioSDKUnity.getCameraPlaneScale();

        // set scale of the camera plane
        cameraPlane.transform.localScale = new Vector3(-scale, scale, scale);
    }