Good day. There was a problem with the creation of the main menu for the game. I have 2 objects: Game Name and Buttons (containing 4 thumbnails). General structure: 
Parameters of objects and their Rect Transform:
A scrolling script is attached to the Buttons and GameText object:
public class ScrollObjects : MonoBehaviour { public float speed = 5f, checkPos = 0f; private RectTransform rect; void Start() { rect = GetComponent<RectTransform>(); } void Update() { if (rect.offsetMin.y != checkPos) rect.offsetMin += new Vector2(rect.offsetMin.x, speed); rect.offsetMax += new Vector2(rect.offsetMax.x, speed); } } The question is why the buttons do not stop at the 0th value and continue to move up? The same thing happens with GameName (if you change the speed to -5f because it should float from top to bottom). PS In the screenshots, I did not take the initial position of the objects beyond the limits of visibility, but even with such parameters, when launching, the objects simply run up. Sorry for the crumpled question, I tried to describe as I could, if I need additional information, I will share it.


