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"

How to access a variable from construction script in event graph?

Hi I have a blueprint with editable variable. For example bool named "var_01" with default value "true". After I place blueprint on level, I change it to "false" in blueprint properties. In event graph in the same blueprint, when I accessed "var_01", I have a result "true", which is default value.

Question is: why this happening and how to access correct value from variable in event graph in the same blueprint?


Product Version: Not Selected
more ▼

asked Aug 02 '14 at 04:20 PM in Blueprint Scripting

avatar image

277 17 23 34

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

1 answer: sort voted first

Are you expecting that if you change something in a blueprint that is in the Level that it will reflect that change in the event graph? That is not how it works.

If you drop a blueprint into a level, you have an instance of that blueprint. Changing its default values in the level does not affect any blueprint spawned thereafter, and it definitely doesn't affect the blueprint asset that it is referenced from.

The change you made to an editable variable will only exist on the specific instance the blueprint in the level that you made the change.

If you want a variable to affect the blueprint in the event graph, you have to set it in the event graph.

more ▼

answered Aug 03 '14 at 04:01 AM

avatar image

1.8k 131 68 110

(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