x

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"

access the variable from other blueprint

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

Product Version: UE 4.21
Tags:
more ▼

asked Feb 19 '19 at 08:02 AM in Blueprint Scripting

avatar image

bokyeongisme
1 1

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

4 answers: sort voted first

welcome bokyeongisme :)

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

more ▼

answered Feb 19 '19 at 08:15 AM

avatar image

aNorthStar
938 8 17 19

avatar image Nebula Games Inc Feb 20 '19 at 01:46 AM

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.

https://www.youtube.com/playlist?list=PLyu-W38DvZhqByAoeva1jewB5s78zQHIy

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

Thanks, aNorthStar. I was about to ask the same question here, but I managed this thread. Thanks for sharing these steps on how to get input. I'm actually a started to learn Unreal Engine 4 a few days ago. I just need to learn a few key points for my project at EduBirdie (https://edubirdie.com/paraphrasing-tool), so I'm not trying to be a guru. However, thanks again for help.

more ▼

answered Feb 19 '19 at 09:53 AM

avatar image

janenall
0 1 1

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

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 :)

more ▼

answered Feb 20 '19 at 02:41 AM

avatar image

aNorthStar
938 8 17 19

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

Who can do my assignment in dublin? Our experts writer write your in cheap rate and they will write any assignments for you, so hurry up get help from us.

more ▼

answered Feb 22 '19 at 05:17 AM

avatar image

assignmentsss
0

(comments are locked)
10|2000 characters needed characters left
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