WorldSpace broken?

After upgrading from 5.3 in both of my projects no more sprites or texts are rendered on the UI when in WorldSpace. ScreenSpace still works fine. Is anybody else experiencing this?

Reported as 757719

I'm able to build new working World Space UI, but all of my upgraded (pre 5.4) UI is broken as well.

Edit: In my case it's because I was scalling the Canvas's Rect transform to a small value (0.005) in order to get higher resolution text/images at my scene's scale. This worked fine before, but breaks now.

Edit 2: I was able to sort-of fix this by doing what was probably the intended method. I set the canvas to a uniform scale of 1, then added a Canvas Scaler component. I then set the Dynamic Pixels Per Unit to 200 (1/0.005) and the font size of my text to 1 (used to be 150).

This is till a problem though, because text at a font size of 1 is HUGE in World Space mode... I need it to be smaller.

So, instead of using Canvas Scaler - I just added a child Rect Transform to the canvas, put all my UI elements in that, and set its scale to 0.005. Done, but not ideal.

The ideal fix would be to allow for floating-point font sizes (without breaking shared font-rendering resources due to floating point errors).

Thanks for the report. We're chasing down the issue related to the transform refactor. Fix is in-progress.

1 Like

i have a similar issue but in my case the canvas render mode is set to screen space - camera. am using a canvas scaler component as well, scale mode 'scale with screen size'. all ui elements are on a separate layer that's rendered by a secondary camera.

project runs fine in 5.3, after importing (and upgrading) the project into 5.4 beta all ui element are invisible. they are still in the hierarchy and buttons react to clicks, you just can't see them. when removing the secondary camera and let the main camera render everything it works fine.

observed that behaviour in the previous and the latest beta version.

Hm, wondering if I got things backwards. I was thinking of a bug regarding screen space, not world space. Asking the UI team to weigh in.

So Alex is correct. So the issue appear with any canvas that has a scale of less than 0.01. There was a assumption made in the transform refactor that caused our rendering matrix to be incorrect at that scale. This causes the rendering issue but does not affect the interaction of elements.

@Art-Leaping Its not intended to force you to have a uniform scale of 1 especially with world space canvas's where the recommendations from us is to scale the canvas down.

1 Like

indeed. scale is set to 0.00833 on my canvas.

Yea in that case we have a fix that just needs to make it way to a release. Unfortunately there is nothing that you can do on your end to resolve the issue short of resizing the canvas.

[quote=“phil-Unity”, post:9, topic: 610623]
Yea in that case we have a fix that just needs to make it way to a release. Unfortunately there is nothing that you can do on your end to resolve the issue short of resizing the canvas.
[/quote]
Thank you for being on top of this!