Exemple #1
0
 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;
    }
Exemple #3
0
        /// <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);
 }
Exemple #5
0
 private void Start()
 {
     mixer  = GetComponent <CinemachineMixingCamera>();
     volume = GetComponent <WeightVolume>();
 }
Exemple #6
0
 private void Start()
 {
     volume = GetComponent <WeightVolume>();
     dolly  = cameraDolly.GetCinemachineComponent <CinemachineTrackedDolly>();
     dolly.m_PositionUnits = CinemachinePathBase.PositionUnits.Normalized;
 }