// 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); }
private void TextureManager_TextureCaptureFinished() { CentralProcessor.GenerateTexturePrefab(); CentralProcessor.UpdateRenderMethodUsed(); }