/// <summary> /// Added as a listener to the OnValueChanged event of Scroll rect. /// Recycling entry point for recyling systems. /// </summary> /// <param name="direction">scroll direction</param> public void OnValueChangedListener(Vector2 normalizedPos) { Vector2 dir = content.anchoredPosition - _prevAnchoredPos; m_ContentStartPosition += _recyclableScrollRect.OnValueChangedListener(dir); _prevAnchoredPos = content.anchoredPosition; }
/// <summary> /// Added as a listener to the OnValueChanged event of Scroll rect. /// Recycling entry point for recyling systems. /// </summary> /// <param name="direction">scroll direction</param> public void OnValueChangedListener(Vector2 direction) { m_ContentStartPosition += _recyclableScrollRect.OnValueChangedListener(velocity); }