I want to make a display of enemy HP information through walls. And also a tag above the enemy, like in FarCry.

The dual camera method is not a good idea because it is VERY slow performance. (Was 900fps became 750fps on PC, and was 60 became 21fps on phone).

  • \$\begingroup\$ Did your second camera rendered everthing? A single extra layer to render on top should have not that much of an impact \$\endgroup\$
    – Zibelas
    Sep 20 at 10:30
  • \$\begingroup\$ @Zibelas, On a phone it is too significant. It is simply impossible to play it. \$\endgroup\$
    – NENE
    Sep 20 at 10:33
  • \$\begingroup\$ I'd recommend not using a worldspace canvas. Use an overlay canvas if what you want is an overlay, then position and scale the health bar elements in screen space to match the world positions of the entities they're annotating. \$\endgroup\$
    – DMGregory
    Sep 20 at 11:20
  • \$\begingroup\$ But also, have you looked into making a copy of the UI sprite shader that just skips the z test? \$\endgroup\$
    – DMGregory
    Sep 20 at 11:32

Your Answer

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

Browse other questions tagged or ask your own question.