Пример #1
0
        private static void _frame_update(internal_UnityARCamera camera)
        {
            UnityARCamera unityARCamera = default(UnityARCamera);

            unityARCamera.projectionMatrix = camera.projectionMatrix;
            unityARCamera.worldTransform   = camera.worldTransform;
            unityARCamera.trackingState    = camera.trackingState;
            unityARCamera.trackingReason   = camera.trackingReason;
            unityARCamera.videoParams      = camera.videoParams;
            unityARCamera.lightData        = camera.lightData;
            unityARCamera.displayTransform = camera.displayTransform;
            s_Camera = unityARCamera;
            if (camera.getPointCloudData == 1)
            {
                UpdatePointCloudData(ref s_Camera);
            }
            if (UnityARSessionNativeInterface.ARFrameUpdatedEvent != null)
            {
                UnityARSessionNativeInterface.ARFrameUpdatedEvent(s_Camera);
            }
        }