private void Start() { volume = GetComponent <WeightVolume>(); brain = Camera.main.GetComponent <CinemachineBrain>(); mixer = GetComponent <CinemachineMixingCamera>(); mixer.Priority = 99; mixer.enabled = false; }
private void Start() { volume = GetComponent <WeightVolume>(); if (mixer == null) { mixer = (CinemachineMixingCamera)gameObject.AddComponent(typeof(CinemachineMixingCamera)); } mixer.Priority = 99; mixer.enabled = false; cameraADefaultParent = cameraA.transform.parent; cameraBDefaultParent = cameraB.transform.parent; }
/// <summary> /// Validates the physical details /// </summary> /// <param name="path">The path to this object as a string</param> /// <param name="messages">the validation messages to date, these may be added to within this method</param> public void Validate(string path, List <ValidationMessage> messages) { var vb = new ValidationBuilder(path, messages); if (WeightVolume != null) { WeightVolume.Validate(vb.Path + "WeightVolume", vb.Messages); } if (Image != null) { Image.Validate(path + ".Image", messages); } }
public void OnWeightVolumeChange(WeightVolume weightVolume) { WeightVolumeDataSelected = weightVolume; SaveWeightVolume(weightVolume.VolumeCode); }
private void Start() { mixer = GetComponent <CinemachineMixingCamera>(); volume = GetComponent <WeightVolume>(); }
private void Start() { volume = GetComponent <WeightVolume>(); dolly = cameraDolly.GetCinemachineComponent <CinemachineTrackedDolly>(); dolly.m_PositionUnits = CinemachinePathBase.PositionUnits.Normalized; }