How can I make an instance-editable variable cause the Construction Script to run when it changes?
I have a blueprint that updates itself in the construction script. Part of how it updates itself depends on the value of a variable. The level designer can update that variable on each instance. After they do, they have to move that object in order for the construction script to update the object to the new variable.
Is there a way I can get the variable change itself to cause the construction script to run? Or some other way I can get the construction script to run without having to move the object? Like a button or toggle that causes it to run?
asked Sep 15 '17 at 05:08 PM in Blueprint Scripting
Not in blueprint, in C++ you can call ExecuteConstruction
C++ can't detect variable changes, editor does that by on actions in property editor as well as gizmo movements, you would either need to make get or set function or detect change on tick or do construction on action that cause change of property.
answered Sep 03 '18 at 02:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here