Hello, it appears that there is an issue with the SetAsMovingSource method in DragOffView. The 'movingSource' parameter of SetAsMovingSource doesn't seem to be utilized within this method. This means that the DragOffView won't revert to its original state at the end of the move. This has caused some problems in my project.
A possible correct approach to modify the code could be:
It seems that the m_OnDragSource might also need modification.
A possible correct approach to modify the code could be:
Code:
/// <summary>
/// Set the view as the source of a movement.
/// </summary>
/// <param name="movingSource">started moving or stopped?</param>
public void SetAsMovingSource(bool movingSource)
{
ActivateGameObjects(m_ActivateOnDragSource, movingSource);
ActivateGameObjects(m_DeactivateOnDragSource, !movingSource);
EnableComponents(m_EnableOnDragSource, movingSource);
EnableComponents(m_DisableOnDragSource, !movingSource);
m_OnDragSource?.Invoke();
}