protected virtual void OnEnable() { _script = (HierarchyScrollRect)target; m_Content = serializedObject.FindProperty("m_Content"); m_MovementType = serializedObject.FindProperty("m_MovementType"); m_Elasticity = serializedObject.FindProperty("m_Elasticity"); m_Inertia = serializedObject.FindProperty("m_Inertia"); m_DecelerationRate = serializedObject.FindProperty("m_DecelerationRate"); m_ScrollSensitivity = serializedObject.FindProperty("m_ScrollSensitivity"); m_Viewport = serializedObject.FindProperty("m_Viewport"); m_OnValueChanged = serializedObject.FindProperty("m_OnValueChanged"); //Inherited cellPoolSize = serializedObject.FindProperty("CellPoolSize"); loadCellsFullyMaxScrollVelocity = serializedObject.FindProperty("LoadCellsFullyMaxScrollVelocity"); minY = serializedObject.FindProperty("minY"); maxY = serializedObject.FindProperty("maxY"); recyclingThreshold = serializedObject.FindProperty("RecyclingThreshold"); slantAngle = serializedObject.FindProperty("SlantAngle"); m_ShowElasticity = new AnimBool(Repaint); m_ShowDecelerationRate = new AnimBool(Repaint); SetAnimBools(true); }