// Use this for initialization void Start() { Instance = this; if (recorder == null) { recorder = GetComponent <MovieRecorder>(); } }
private void Awake() { movieRecorder = GetComponent <MovieRecorder>(); academy = FindObjectOfType <Academy>(); Camera mCamera = GetComponent <Camera>(); RenderTexture rt = new RenderTexture(resolutionWidth, resolutionHeight, 16, RenderTextureFormat.ARGB32); mCamera.targetTexture = rt; movieRecorder.targetRT = rt; movieRecorder.outputDir = new DataPath(DataPath.Root.Absolute, outputDir); movieRecorder.captureAudio = captureAudio; movieRecorder.resolutionUnit = RecorderBase.ResolutionUnit.Percent; movieRecorder.resolutionPercent = 100; movieRecorder.captureControl = CaptureControl.Manual; }
private void Awake() { movieRecorder = GetComponent <MovieRecorder>(); Camera mCamera = GetComponent <Camera>(); RenderTexture rt = new RenderTexture(resolutionWidth, resolutionHeight, 16, RenderTextureFormat.ARGB32); mCamera.targetTexture = rt; movieRecorder.targetRT = rt; movieRecorder.outputDir = new DataPath(DataPath.Root.Absolute, outputDirectory); movieRecorder.captureAudio = captureAudio; movieRecorder.resolutionUnit = RecorderBase.ResolutionUnit.Percent; movieRecorder.resolutionPercent = 100; movieRecorder.captureControl = RecorderBase.CaptureControl.Manual; movieRecorder.framerateMode = RecorderBase.FrameRateMode.Constant; movieRecorder.fixDeltaTime = false; movieRecorder.waitDeltaTime = false; }
void Start() { recorder = camera.GetComponent <MovieRecorder> (); api = gameObject.AddComponent <VimeoApi> (); api.token = accessToken; }
void Start() { recorder = RenderCamera.GetComponent <MovieRecorder>(); }
private void Awake() { _movieRecorder = Camera.main.GetComponent <MovieRecorder>(); }