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"

Variable lost when not set to 'Editable' [REPRO PROJECT]

Please see this simple repro project, everything is explained in the starting scene: SIMPLE REPRO PROJECT

Basically, in this example, variable is randomly set in construction script, and when 'LOCK' boolean is ON, it won't generate new value, but just read the previously generated one. It works ONLY when variable is set to 'Editable'.

Product Version: UE 4.13
Tags:
more ▼

asked Sep 08 '16 at 12:12 PM in Bug Reports

avatar image

Slavq
2k 157 153 210

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

1 answer: sort voted first

Hi Slavq,

This is expected behavior. When you move the actor in question, it is technically resetting the variable value to 0, because the actor is being destroyed and recreated, which resets the variable to a default value. By setting the variable to editable, it allows you to override the reset value with a new default value independent of the initial default value. When you have "Editable" unchecked, it always assumes that the default value should be 0, and that, if the actor is recreated, it should be 0. When checked, "Editable" allows you to alter the default value for that actor during destruction and re-creation.

more ▼

answered Sep 08 '16 at 05:07 PM

avatar image Slavq Sep 08 '16 at 05:13 PM

Ah, now I understand, thanks!

(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