public new void OnEnable() { lightweightPipeline = GraphicsSettings.renderPipelineAsset as LightweightPipelineAsset; settings.OnEnable(); UpdateAnimationValues(true); }
void OnEnable() { lightweightPipeline = GraphicsSettings.renderPipelineAsset as LightweightPipelineAsset; clearFlags = serializedObject.FindProperty("m_ClearFlags"); backgroundColor = serializedObject.FindProperty("m_BackGroundColor"); normalizedViewPortRect = serializedObject.FindProperty("m_NormalizedViewPortRect"); nearClippingPlane = serializedObject.FindProperty("near clip plane"); farClippingPlane = serializedObject.FindProperty("far clip plane"); fieldOfView = serializedObject.FindProperty("field of view"); orthographic = serializedObject.FindProperty("orthographic"); orthographicSize = serializedObject.FindProperty("orthographic size"); depth = serializedObject.FindProperty("m_Depth"); cullingMask = serializedObject.FindProperty("m_CullingMask"); renderingPath = serializedObject.FindProperty("m_RenderingPath"); occlusionCulling = serializedObject.FindProperty("m_OcclusionCulling"); targetTexture = serializedObject.FindProperty("m_TargetTexture"); HDR = serializedObject.FindProperty("m_HDR"); allowMSAA = serializedObject.FindProperty("m_AllowMSAA"); allowDynamicResolution = serializedObject.FindProperty("m_AllowDynamicResolution"); stereoConvergence = serializedObject.FindProperty("m_StereoConvergence"); stereoSeparation = serializedObject.FindProperty("m_StereoSeparation"); #if ENABLE_MULTIPLE_DISPLAYS targetDisplay = serializedObject.FindProperty("m_TargetDisplay"); #endif targetEye = serializedObject.FindProperty("m_TargetEye"); UpdateAnimationValues(true); }
public void OnDisable() { showBGColorAnim.valueChanged.RemoveListener(Repaint); showOrthoAnim.valueChanged.RemoveListener(Repaint); showTargetEyeAnim.valueChanged.RemoveListener(Repaint); lightweightPipeline = null; }