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"

[4.10.2] Construction Script variables can only be edited when they are exposed.

I found a bug today when using the construction script inside my blueprint. If you have a variable, string for example, you can't set it from the construction script unless it is set to be "Editable", which also exposes them to the Blueprint details in the world. The same is with local variables, and that is kind of weird, because I need to use a checking variable inside my construction script but it won't work without making them editable. Steps to reproduce:

  • Create or edit any Blueprint

  • Open up the construction script

  • Create a new variable of any type and try to set it to some value

  • You'll see that it won't take the value when you use the SET expression. Use Print Strings for testing that!

  • Make the variable Editable (Details panel)

  • See that its working then...

Thanks for reading :)

Product Version: UE 4.10
Tags:
more ▼

asked Jan 26 '16 at 03:33 PM in Bug Reports

avatar image

iUltimateLP
183 17 28 36

avatar image Adam Davis STAFF Jan 26 '16 at 09:07 PM

Hi iUltimateLP,

Unfortunately, I have not been able to reproduce this on my end. What specifically are you seeing on your end?

avatar image iUltimateLP Jan 26 '16 at 09:12 PM

Nothing spectacular.. Just like you set a variable from blueprints.. No error, but as I can test with print strings, the set variable node won't set :) Edit: In normal event graphs, it works, but not in construction script .

avatar image Adam Davis STAFF Jan 26 '16 at 09:27 PM

What variable are you setting? What is the outcome you are seeing vs. what you expect to occur?

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

1 answer: sort voted first

Hi iUltimateLP,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

more ▼

answered Feb 01 '16 at 02:49 PM

avatar image Spoondog Apr 14 '17 at 02:34 AM

I get what he's saying, just ran into this myself on 4.15 - if you want to set a variable from the construction script, you have to make it "editable", which is not always desired because that exposes it to the property window and changing it might be dangerous.

It's not a biggie, but it'd be nice if you could set a variable in the CS without exposing it. I notice variables now have an "expose to cinematics" checkbox that allows matinee/sequencer to modify the variable - perhaps that could be extended to also allow the actor's construction script to modify it?

avatar image Thomas G ♦♦ STAFF Apr 17 '17 at 02:49 PM

Hello Spoondog,

I was unable to reproduce this issue in 4.15.1. I was able to set an INT variable and have it print without making the variable editable. I have a couple questions to help me narrow down this issue:

  1. Can you reproduce this issue in a new project?

  2. If so, could you provide a detailed list of steps so that I can reproduce this issue on our end?

  3. Could you provide screenshots of the issue?

avatar image TimB May 09 '17 at 12:38 AM

I also just ran into this, in this example if you have "Instance Editable" set to true, then this works as expected and sets the variable to true. If you do not have the variable "HasRun" instance editable, then it never sets the variable to true.

alt text

example.png (47.7 kB)
avatar image Thomas G ♦♦ STAFF May 09 '17 at 04:36 PM

Hello TimB,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here

https://issues.unrealengine.com/issue/UE-44842

You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

(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