1
\$\begingroup\$

We are developing 3D racing game. After the player's position in Z axis reaches 1000, our Canvas UI is hidden and reset. If I unparent it from Character controller, it still gets auto reset but not hidden. If I drag player back to < 1000, it again shows my UI.

Any suggestions why this may be happening?

\$\endgroup\$
7
  • \$\begingroup\$ Could be a camera issue, check your render distance maybe? or render order, the UI could be getting hidden behing objects around the 1000z position. \$\endgroup\$ – Latency Jun 1 '15 at 16:54
  • \$\begingroup\$ Hey problem was solved after changing Render mode of canvas to ScreenSpace camera from Screen Space - Overlay \$\endgroup\$ – idurvesh Jun 1 '15 at 17:04
  • \$\begingroup\$ Wait, your UI Canvas is parented to the player? um don't do that; you said "I unparent it from Character controller". \$\endgroup\$ – jhocking Jun 6 '15 at 17:52
  • \$\begingroup\$ Also, what does "reset" mean? It's unclear exactly what you mean is happening. \$\endgroup\$ – jhocking Jun 6 '15 at 17:54
  • \$\begingroup\$ @jhocking yesI parented it as there are multiple levels so sake of simplicity I did it.THe problem has now solved.See my answer \$\endgroup\$ – idurvesh Jun 6 '15 at 19:47
1
\$\begingroup\$

Problem was solved after changing Render mode of canvas to Screen Space - camera from Screen Space - Overlay

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.