Access the variable from other blueprint

welcome bokyeongisme :slight_smile:

Yes, this is achievable… but to get variable state from one BP to another you’d need to:

  1. have a reference to the other actor (often uses spawning and casting), and then get your variable
  2. use BP communications (like interface), to pass the variable when it changes
  3. use the level blueprint to store variables held commonly (I think… I don’t really use this one)

You can google these and search here to check out the specifics as to how to implement

I made a bool type variable in a blueprint script. and I want to use this variable in other blueprint script.
What I am doing is when some actor changes the scale that bool variable changes the value and with this variable changing, the other actor from other blueprint script changes. I don’t have any input or character things…plz help me

As the above answer states, you need references. If you also need help creating references, understanding casting, interfaces and other things mentioned I have a beginner friendly tutorial series you may find useful. The very first video goes over casting, there is also one about references and one on interfaces among others. Hope this helps.

1 Like

here is the official documentation page…
https://docs.unrealengine.com/en-us/Gameplay/HowTo/ReferenceAssets/Blueprints

I think the simplest way to get a reference to another actor, is to spawn it in the BP that you plan to reference it (it’s described in the doco). For me, this was one of the concepts that I had the hardest time with… starting out… but once I figured it out… things really fell into place :slight_smile: