Construction Script¶
Choose to Construction Script tab.

Variables¶
Right click on a slot and choose Promote to Varaible
Note: It is also possible to click on + Variable in the My Blueprint panel.

Change the Variable Name from the under Variable in Details panel.
You’ll see a message saying Please compile the blueprint. So go ahead and compile.
Go to existing light, drag and drop to save colour.
Go back to the variable and you can now select that same colour in Default Color.
Check the instance editable:

Private vs Public Varriable¶
The eye icon on the right of the variable shows whether it is public or private.

Tooltip¶
On the Details panel, you could enter the tooltip for the variable.
Changing instances of a class¶
With the construction script setup, you could now change the default colour per light in the viewport.
Next to allow turning light on and off per instance:
Create Set Visibility
Connect Spot Light to Target
Connect Set Light Color to Exec
Promote New Visibility to variable and name it VisibilitySetting
Set Tooltip for variable to Turn on off the light
You can now choose the default setting per light.
Example¶
