O'Reilly logo

Building an FPS Game with Unity by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Replacing the default UFPS HUD

We now have a Main menu, but our regular game level is showing a default UI. While it's fine for testing purposes, we may want to make something a little more custom for our finished product.

  1. Start off by opening up any of the levels you've created that have the AdvancedPlayer prefab inside it (I chose Chapter7_MeshingYourLevel).
  2. From there select your AdvancedPlayer and look at it from the Inspector. One of the components you'll see is the vp_SimpleHUD component.
    Replacing the default UFPS HUD

    This is what draws the screen in the default way and can be a good reference when it comes to accessing variables. However, we do not want to use it in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required