// Use this for initialization void Start() { if (saveCamera == null) { saveCamera = GetComponent <Camera>(); } Speed = 14.0f; refScriptCart = gameObject.transform.GetChild(1).gameObject.GetComponent <CinemachineDollyCart>(); refScriptTrack = gameObject.transform.root.GetChild(1).gameObject.GetComponent <CinemachineSmoothPath>(); refScriptVideoRecorder = gameObject.GetComponent <CaptureFromCamera>(); refScriptVideoRecorder._outputFolderPath = Application.persistentDataPath + "/Save_Media/"; refScriptCart.m_Position = 0; refScriptCart.m_Speed = 0.0f; }
private void Start() { fromCamera = GetComponent <CaptureFromCamera>(); fromCamera._outputFolderPath = ""; int numAudioDevices = NativePlugin.GetNumAVIAudioInputDevices(); if (numAudioDevices > 0) { _audioDeviceNames = new string[numAudioDevices]; for (int i = 0; i < numAudioDevices; i++) { _audioDeviceNames[i] = NativePlugin.GetAVIAudioInputDeviceName(i); } } }