void Start() { profile = Camera.GetComponent <UnityEngine.PostProcessing.PostProcessingBehaviour>().profile; DOFModel = profile.depthOfField; CGModel = profile.colorGrading; DOFModel.enabled = false; CGModel.enabled = false; DOFsetting = DOFModel.settings; CGsetting = CGModel.settings; }
void Start() { dof_ = GetComponent <UnityEngine.PostProcessing.PostProcessingBehaviour>().profile.depthOfField; dof_settings_ = dof_.settings; }