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"

Referencing Level Blueprint Variables prevents saving?

Hello Staff,

I've run into a roadblock and would love your advice.

  • I have created some variables in the Level Blueprint

  • I need to access these Level Blueprint variables from within the MyCharacter Blueprint

  • As you can see in the first two screenshots, the method I use accomplishes my goal

  • Everything compiles without errors or warnings and runs perfectly

  • Unfortunately, when I attempt to save these changes, I receive an error preventing me from saving my changes (see screenshots three and four)

  • This has not been a problem when using this same method of accessing variables across blueprints when not involving the Level Blueprint

  • It appears that using C++ to implement this method would not have this particular problem

In conclusion, it feels like these save error messages are intended... but if the game compiles with no errors, and everything works at runtime, why would I not be allowed to save these changes? This is a strange exception to the rule.

Level Blueprint

MyCharacter Blueprint

Save Error 1

Save Error 2

Product Version: Not Selected
Tags:
more ▼

asked Jan 04 '15 at 03:50 AM in Blueprint Scripting

avatar image

Whitehawk
26 2 6 6

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

1 answer: sort voted first

For default game variables, save them in your Default Game Mode, particularly if you are using a asset in multiple levels. The problem is that the variables you are trying to reference do not exist in the current context because the map that houses those variables is not loaded. The Default Game Mode class, however, stays constant even between levels unless you explicitly change it. You would have this same problem with C++, because the problem is that they don't exist.

Cheers, Tony

more ▼

answered Jan 04 '15 at 08:19 PM

avatar image

RAVaught
699 44 28 68

(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