79187539

Date: 2024-11-14 05:57:18
Score: 2
Natty:
Report link

Solved it. It seems like the problem was that I was disabling the UIDocument component as soon as it was spawned in the scene with the intention of hidding the UI. I tried to change to disable the GameObject instead, but it seems like even that would break the UI as well (if someone knows why this happens, or if is a bug do let me know please). It seems like the best way to hide the UI is to change the visibility of the root element of the UI document.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Agustin0987