Can anyone help me understand Blueprint Instanced Lights? I’ve followed this tutorial
and set up a scene.
What seems to happen is that if I edit any of the parameters on already instanced lights, ie Intensity or Color, the ‘link’ is broken with the parent BP class. ie if I change those same parameters in the BP class I don’t see the changes reflected in the light instance. Confusing.
Coming from Unity this process seemed a lot simpler. Its just creating Prefabs.
What I’m noticing is that if I edit the parameters of an instanced light directly in the Details window, the link with the Blueprint seems broken. ie if I try and change those same parameters within the Blueprint nothing changes.
Understand these are individual instances of a class; they are not linked. The values set in the blueprint editor are default values for the class, not synced values. If you want them to sync from editing them within the editor, you can:
Apply your changes to the blueprint by clicking the blue “Edit Blueprint” dropdown and selecting “Apply Instance Changes to Blueprint”.
In the construction script, GetAllActors of your light class and set their intensities to the light you are editing.
Have them get their value from one common place.
Also, in the video, he didn’t have to delete all the lights to replace them. He could’ve selected them all, right clicked, and selected “Replace Selected Actors with…”.