Announcement

Collapse
No announcement yet.

HUD question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HUD question

    I have two huds BP. Journal and Inventory. How i can change from BP, player HUD class ? Journal / Inventory or other by presed key.

    #2
    Easiest is to do a Branch on the state of a boolean variable in your HUD controller. Make it draw one thing when the boolean is on, and another thing when it's off. Then toggle this boolean with a key input.

    The Vehicle Template HUD does this, to support pause menu versus driving information.

    Comment


      #3
      Originally posted by jwatte View Post
      Easiest is to do a Branch on the state of a boolean variable in your HUD controller. Make it draw one thing when the boolean is on, and another thing when it's off. Then toggle this boolean with a key input.

      The Vehicle Template HUD does this, to support pause menu versus driving information.
      Thx. But i want to know how i can change HUD class from BP or it's not posibile. When i changed GameMode=>SetHUDClass , playerController => GetHUD - returned default HUD.
      (I knows what i can change HUD from WorldSettings)

      Comment


        #4
        I would create a BP_HUDManager probably as an Actor, and have it spawn BP_Journal and BP_Inventory as and when you need them. BUT that is based on what I would do in Unity, isn't the HUD somehow related to the GameMode? Maybe you can only have one HUD at a time.

        Comment


          #5
          Originally posted by Anadin View Post
          Maybe you can only have one HUD at a time.
          Maybe i can't change HUD in runtime. All examples works with switch in MAIN HUD.

          Comment


            #6
            Originally posted by Anadin View Post
            I would create a BP_HUDManager probably as an Actor, and have it spawn BP_Journal and BP_Inventory as and when you need them. BUT that is based on what I would do in Unity, isn't the HUD somehow related to the GameMode? Maybe you can only have one HUD at a time.
            You should stay with one HUD and do a branch.

            Just make 2 different functions, one for drawing the Journal, the other for the inventory.

            You want to use some of the same functions and variables anyway, so my advice is to stay within one BP. Not even sure you can change between them.
            Easy weapons in Unreal Engine 4:
            Check out Realistic Blueprint Weapons

            Currently doing a tutorial series on Vectors and what they are good for.
            Please visit Unreal Unscripted

            Comment

            Working...
            X