Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Passing value from HUD BP to a variable in Pawn BP

alt text


I'm having hard time to understand a very basic procedure in UE4, how to pass variables between blueprints. I have a "SpaceInnerCamera" pawn where I control the movement of the pawn (camera) during game play. I am using a "HUD_selection" variable to choose between different HUDs. In each HUD blueprint there are few buttons and the idea is to interact between different HUDs by clicking those buttons. The HUD is selected based on an integer value whis is changed based on pressed button (each button sets dirrefent value to this same integer variable). The problem is that I don't know how to set the integer that is located in pawn BP by clicking a button in HUD BP? Please see the attached picture.


Product Version: UE 4.11
more ▼

asked May 17 '16 at 05:20 PM in Blueprint Scripting

avatar image

26 1 3 6

avatar image saeedc May 17 '16 at 09:45 PM

if you want your pawns to have access to HUD variables, you must access them from player controller.

use get player controller then get hud then cast to your hud then you can have access to hud's variables.

avatar image saeedc May 17 '16 at 09:47 PM

those variables must be public

avatar image D1me May 18 '16 at 01:08 PM

Original guestion was other way around but I got it working.. Thanks for your support!! :)

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question