Difficulty with WorldSpace UI in Unity DOTS
Posted: 12 Oct 2023, 20:30
Heyo,
Might be somewhat of a noob question but I'm wondering if there are known additional steps required to get WorldSpace UI working for DOTS. I've been able to set-up both overlay and worldspace working in a non-dots test project, following the same steps though I can't get Worldspace UI to render in my DOTS project.
I'm aware I need to manually sync the position of my UI game object with the World Space UI Component on it to my Entity's local to world transform to have the UI follow my entity, but there seems to be more issues. I'm currently testing by attaching my WorldSpaceUI component to a static empty game object inside my main subscene.
One big oddity that's showing up is that the WorldSpaceUI Component resets its View field to None every time I enter and then exit Playmode. When I try to set the View on a prefab object it only recognizes available Views half the time, and the View setting on the prefab also resets after entering and exiting Playmode.
Any help would be much appreciated!
Unity 2022.3.9
Entities 1.0.16
Entities Graphics 1.0.16
Noesis 3.2.2
Might be somewhat of a noob question but I'm wondering if there are known additional steps required to get WorldSpace UI working for DOTS. I've been able to set-up both overlay and worldspace working in a non-dots test project, following the same steps though I can't get Worldspace UI to render in my DOTS project.
I'm aware I need to manually sync the position of my UI game object with the World Space UI Component on it to my Entity's local to world transform to have the UI follow my entity, but there seems to be more issues. I'm currently testing by attaching my WorldSpaceUI component to a static empty game object inside my main subscene.
One big oddity that's showing up is that the WorldSpaceUI Component resets its View field to None every time I enter and then exit Playmode. When I try to set the View on a prefab object it only recognizes available Views half the time, and the View setting on the prefab also resets after entering and exiting Playmode.
Any help would be much appreciated!
Unity 2022.3.9
Entities 1.0.16
Entities Graphics 1.0.16
Noesis 3.2.2