Exemple #1
0
        public void StreamResourcesForBuiltInCamera(UnityEngine.Camera streamingCamera)
        {
            m_nativePluginRunner.StreamResourcesForBuiltInCamera();

            // re-centre the camera for ECEF
            if (m_coordinateSystem == CoordinateSystem.ECEF)
            {
                m_originECEF += streamingCamera.transform.position;
                streamingCamera.transform.position = Vector3.zero;
            }
        }
Exemple #2
0
        public void StreamResourcesForBuiltInCamera(Camera streamingCamera)
        {
            m_nativePluginRunner.StreamResourcesForBuiltInCamera();

            // re-center the camera for ECEF
            if (m_coordinateSystem == CoordinateSystem.ECEF)
            {
                var mapSpaceCameraPosition = m_root.transform.InverseTransformPoint(streamingCamera.transform.position);
                m_originECEF += mapSpaceCameraPosition;
                streamingCamera.transform.position = m_root.transform.position;
            }
        }