I am fiddling for quite some time now to align a “meter” (GUI element at the top of my window) with a small sprite on top (the indicator of the meter).
When I resize my window, the indicator is not position correctly on the meter anymore! I tried everything, reading the docs on how alignment works, but it still moves away.
The meter texture is 512 x 128
The indicator is 32 x 32
You want to use the transform position to center it on the screen, independent of the resolution of the screen.
Then use the pixel inset to move them relative to that. The important part is that all the gui texture which you are trying to align should use the same transform position and should be offset from each other using pixelinset.