Example #1
0
    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();
    }
Example #3
0
 // 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");
     }
 }
Example #4
0
    // 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");
            }
        }
    }