Can I lock A UI Buttons position

I have a button in the canvas and im wondering if theres a way to make it so if the canvas moves it doesnt

@Yogurt_ Just make another static canvas and put your button in it. That way you will have both canvases so you can move one while other is in the same position.

@Yogurt_
When you move a GameObject, all children of it will also move with it and since your button has to be a child of the canvas, you can’t just place it outside of the canvas and make it separate.

Wich leaves you with 2 options (at least which I can think of):

  1. getting the initial position of the Button in Start() and applying that position to the button in Update(), meaning you get the position of it when the game starts and set it to that position every frame.
  2. In Update(), constantly getting the movement or position of the canvas, inverting it, and applying the inverted movement / position to the button

If only you could just slap a rigidbody on it and freeze all three axis