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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to call a blueprint variable from another blueprint?

Hi. I have a blueprint character and I have set up a bool to be activated when the event "InputAction Jump" fires. I want that another blueprint checks that bool, but I can't find the way to access it there. It would be great if there was a way to call, in that other blueprint, "Get Player Character" and from the return node be able to call a function to get the bool variable value, but I've only been able to do that with variables that are actor references (with "Exposed On Spawn" and "Editable" set to true), but not other types of variables. How can I do it?

Product Version: Not Selected
more ▼

asked Apr 04 '14 at 05:39 PM in Blueprint Scripting

avatar image

Albert Espín
967 80 98 359

avatar image DanzigLucifuge Apr 13 '17 at 02:46 AM

I have to say whats on everyone's mind here. I've read this and other forums repeatedly to figure this out and still don't get it. In other games or scripting in general it aint no thang to declar variables in higher scope and access or change said variables from any scripts within the scope. Or declaring variables, declaring global variables is a synch in other engines. I don't understand at all why this is so extremely hard to do in Unreal. I really don't. I spent the last 3 hours messing with interfaces and functions all so I can pass variables from a parent class to its child class and still no luck. It almost seems as if ya'll have made this difficult on purpose. Whats the deal?

avatar image gurudeva Oct 27 '17 at 10:45 AM

This is how I feel. 3 days now, reading about interfaces, public variables, dispatchers, blah blah blah. read so much I can barely even process the english language anymore and I still have no idea how to call a variable from another BP. At least I finally read somewhere that you just flat out can't call variables from level blueprints (okay, sure, why not.). I'm totally burnt out trying to solve something that is so simple. most likely the solution is a checkbox in some super unintuitive menu waiting to be ticked. Hopefully someone links me their tutorial video that's over an hour long with some overly complex reply that I can't begin to decipher.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

You have 2 choices, Bluprint Comms or Blueprint Interfaces. Basically, make the variable public, ie. click the eye next to it so it's open. But here's a thread with discussion on it:


more ▼

answered Apr 04 '14 at 05:55 PM

avatar image

2.5k 102 66 260

avatar image Albert Espín Apr 10 '14 at 05:35 PM

Thanks you. I recommend looking here to people searching on this: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can also call blueprint variables from another blueprint by using a way that I only just realised, although I can't believe I didn't. when you need to access the variable, simply put "Cast To [BluePrint Name]", and drag out the "As [BluePrint Name Casting - Child Parent] node and type the name of the variable. This will allow you to affect and search for the other BluePrints' variable. If my description wasn't clear, I have included the link to a tutorial on this subject.


more ▼

answered Aug 29 '18 at 11:28 PM

avatar image

6 1

avatar image predspread Aug 30 '18 at 08:26 AM

This thread is over 4 years old...

avatar image Daybreak58 Aug 30 '18 at 10:03 AM

Yeah, but I find that way easier, and if others come to this thread as I did they'll have that option as well.

avatar image somethingstarted Dec 30 '18 at 12:25 PM

its looking to be helping me.

avatar image F1ldW1ZZ Mar 16 '19 at 10:44 PM

Yeah it helped me too , don't think other people aren't learning now what you did 4 years ago .

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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