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"

What Blueprints Should I Cast To?

Hi guys,

At the moment I mainly use the Character Pawn for information to meet and communicate since it's accessible from virtually any other related blueprint.

But, I'm now scripting actions which do not involve the Character Controller directly and I would like those scripts to be communicating elsewhere for a number of reasons, one being clutter.

So, as per title, is there a particular blueprint I can access from Actor Blueprints that you feel to recommend?

Or maybe is there a list that you feel I should look into?

Casting to Level Blueprint seems a bit overkill and messy since it's already filled with other level related stuff.



Product Version: UE 4.13
more ▼

asked Oct 27 '16 at 01:20 PM in Blueprint Scripting

avatar image

86 11 16 19

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

1 answer: sort voted first

I don't know if I understand you correctly but you basically want to access some of your functions in every blueprint, right?

Maybe you should take a look at the "Blueprint Function Library"


more ▼

answered Oct 27 '16 at 01:51 PM

avatar image

431 38 48 143

avatar image EminorReal Oct 27 '16 at 02:02 PM

Thanks for the answer Braindrain85. It's basically what you said only instead of functions I need globally accessible variables such as floats, arrays, strings, etc.

EDIT: To be more clear, I basically have a number of Actor Blueprints, let's say two, which want to check and share a number of variables, let's say a bool. I need a place where they can cast to so that they may check, and influence the bool state.

avatar image Pseudocorpus Oct 27 '16 at 02:14 PM

Oh ok. Maybe you can make your own Game Mode class, set this game mode as the default game mode of your project. and save your variables in there.

Afterwards you can call "Get game mode" from any blueprint class, cast it to your game mode and receive your variables from there.

avatar image EminorReal Oct 27 '16 at 02:20 PM

Perfect, thanks.

P.S. Did I call you "newest"? xD Gosh, I'm a bit concentrated on my work at the moment if you couldn't tell xD

avatar image Pseudocorpus Oct 27 '16 at 02:26 PM

Don't mention it. ;) Keep up the good work

avatar image EminorReal Oct 27 '16 at 02:28 PM

Cheers m8.

(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