Example #1
0
        // Use this for initialization
        void Awake()
        {
            // Enable Hololens commands for starting and stopping texture capture
            Interactions.EnableVoiceCommand(Constants.Commands.VoiceCommandsEnum.BeginRoomTexture);
            Interactions.EnableVoiceCommand(Constants.Commands.VoiceCommandsEnum.EndRoomTexture);

            RoomMeshLoaded         += TextureManager_RoomMeshLoaded;
            TextureCaptureFinished += TextureManager_TextureCaptureFinished;

            CentralProcessor.UpdateRenderMethodUsed(true);
        }
Example #2
0
        // For when starting to capture photos
        public static void OnPhotoModeStarted(PhotoCapture.PhotoCaptureResult result)
        {
            if (result.success)
            {
                // Enable gestures which call the Capture() method, which takes screenshots and saves them as textures
                Interactions.EnableVoiceCommand(Constants.Commands.VoiceCommandsEnum.RoomScreenshot);
                Interactions.EnableGesture(Constants.Commands.GesturesEnum.RoomScreenshot);
            }
            else
            {
                if (Constants.DebugStrings.DebugFlag)
                {
                    Debug.Log(Constants.DebugStrings.PhotoCaptureModeInitFailed);
                }

                // ERROR TESTING - do i want this to be an exception thrown? do i want to have it retry several times?
            }
        }