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"

Interface or Cast?

Hello,

maybe its a stupid question, but i need to know.

How can i achieve that i can communicate Variables from Blueprint1 to Blueprint2?

Scenario:

I want my Blueprint1 to change a bool to true, how can i communicate the change to Blueprint2?

I tried Interface but got some Problems.

Product Version: UE 4.16
Tags:
more ▼

asked Oct 21 '17 at 12:59 PM in Blueprint Scripting

avatar image

M96Wayne
3 1 2

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

2 answers: sort voted first

Blueprint communication falls into 3 categories:

  • Direct

  • Dispatchers

  • Interface

It's been described in dozens of tutorials in fine detail so I'll keep it very short. Here's an example. Both objects are spawned and their references are stored in a variable. In this instance, this is done in the GameMode which is easily accessible from pretty much everywhere:

alt text

Now, any blueprint that has access to the GameMode, has also access to those actors. They can also now talk to one another:

alt text

I really do suggest you have a look at some online tutorials for these. Spending 3-4 hours now trying to understand how it works will save you days or even weeks later on.

spawner.png (112.8 kB)
gm.png (46.0 kB)
more ▼

answered Oct 21 '17 at 04:08 PM

avatar image

Everynone
3.6k 27 13 26

avatar image M96Wayne Oct 21 '17 at 11:08 PM

thanks, but i solved it on a different way!

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

That Learning Session get you covered. https://www.youtube.com/watch?v=EM_HYqQdToE

more ▼

answered Oct 21 '17 at 09:06 PM

avatar image

Nachtmahr
6.3k 136 17 158

avatar image M96Wayne Oct 21 '17 at 11:09 PM

thank you, gonna watch it :)

(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