void Start() { moviemode = GetComponent <MovieMode>(); if (ControlledObjectList == null) { ControlledObjectList = new List <List <GameObject> >(); } ControlledObjectList.Clear(); ControlledObjectList.Add(group0); ControlledObjectList.Add(group1); ControlledObjectList.Add(group2); ControlledObjectList.Add(group3); ControlledObjectList.Add(group4); ControlledObjectList.Add(group5); controlledObjectIndex = Mathf.Clamp(controlledObjectIndex, 0, ControlledObjectList.Count - 1); for (int i = 0; i < ControlledObjectList.Count; i++) { SetControlledObjectActive(ControlledObjectList[i], false); } SetControlledObjectActive(ControlledObjectList[controlledObjectIndex], true); render = WaveVR_Render.Instance; }
public virtual void StartNewRecording() { Mode = MovieMode.Record; if (Global.Config.EnableBackupMovies && MakeBackup && Log.Any()) { SaveBackup(); MakeBackup = false; } Log.Clear(); }
public virtual void StartNewRecording() { Mode = MovieMode.Record; if (Session.Settings.EnableBackupMovies && MakeBackup && Log.Any()) { SaveBackup(); MakeBackup = false; } Log.Clear(); }
public virtual bool Stop(bool saveChanges = true) { bool saved = false; if (saveChanges) { if (Mode == MovieMode.Record || (this.IsActive() && Changes)) { Save(); saved = true; } } Changes = false; Mode = MovieMode.Inactive; return(saved); }
public void FinishedMode() { Mode = MovieMode.Finished; }
public virtual void SwitchToPlay() { Mode = MovieMode.Play; }
public virtual void SwitchToRecord() { Mode = MovieMode.Record; }
public virtual void StartNewPlayback() { Mode = MovieMode.Play; }
public void SwitchToPlay() => Mode = MovieMode.Play;
public void SwitchToRecord() => Mode = MovieMode.Record;
public void StartNewPlayback() => Mode = MovieMode.Play;