public override void OnInspectorGUI() { LS360VRCamera targetCamScript = (LS360VRCamera)target; GUILayout.BeginHorizontal(); GUILayout.EndHorizontal(); EditorGUILayout.Space(); base.OnInspectorGUI(); }
public override void OnInspectorGUI() { LS360VRCamera targetCamScript = (LS360VRCamera)target; GUILayout.BeginHorizontal(); GUILayout.Box(WorldIcon, GUILayout.Width(WorldIcon.width), GUILayout.Height(WorldIcon.height), GUILayout.ExpandWidth(true)); GUILayout.EndHorizontal(); EditorGUILayout.Space(); base.OnInspectorGUI(); }
// Use this for initialization void Start() { AudioSettings.GetDSPBufferSize(out bufferSize, out numBuffers); if (LS360VRCamera.Instance() != null) { captureKey = LS360VRCamera.Instance().captureVideoKey; } else { Debug.LogError("Error: No LS360VRCamera Found"); } }
// Update is called once per frame void Update() { if (LS360VRCamera.Instance().captureEveryFrame == false) { return; } if (Input.GetKeyDown(captureKey)) { if (recOutput == false) { print("Started Audio Recording"); StartWriting("LSCaptureFiles/" + LS360VRCamera.Instance().GetCaptureBaseName() + fileName); recOutput = true; } else { recOutput = false; WriteHeader(); print("Stopped Audio Recording"); } } }