GUI Texture Repositioning

How would I get a GUI texture to reposition itself to the center of the window even if I change the window size in gameplay the GUI texture would still reposition itself to the center of the window? Isn’t that how you would get the crosshair texture to be inline with the raycast? If I am wrong please correct me.:slight_smile:

There is no direct way to get window-relative positioning for a GUI element, but you can locate the pixel position of the window’s centre quite easily. If you divide the width and height of the window by two, you get the horizontal and vertical pixel coordinates of its centre. You just need to calculate this centre and position your GUI element relative to it.