Unfortunately, this has been trumping my ideas as it has made it insanely hard for me to accurately create my games UI. Are there any solutions? Also, how can I make images and elements scale with my screensize?
@Cryptonaph I don’t know if this will be helpful or not but… When I edit my UI’s in the editor I switch the perspective to Front not Camera(as shown I think) and then with the UI screen selected I uncheck the following. (Screen Space)
Make sure you re-enable afterwards. I have not had the time to understand why this works for me.
Well the thing is, I would do that, but when there are objects in the corners of the screen space in the editor, they don’t show up in the actual game, not sure why. It doesn’t seem to scale any of the objects to the correct size or position, and rather just keeps them in the same spot regardless of what I do.
Oh, you have a World Space Screen. The tutorial you were looking at with the high score table is screen space so as long as all the elements are positioned relative to the 2D screen, it doesn’t matter where in the world the screen entity is.
In the case where you want UI on top of players in world space, you can just use elements without a screen and have it has a child of the player
We also want the world space elements to face the user camera at all times so we should add some code so that it’s always looking at the camera.
We also add it to World layer so it doesn’t render over everything