How to spawn dynamic lights at runtime?

Hello. I am working on a architectural visualization project that must allow to spawn movable lights at runtime, because the scene illumination must be rigorous. It is possible?. I read in the forum that is not possible to build lights at runtime, but which is the difference between spawn and build static lights, and spawn dynamic lights directly?

When I spawn a light at runtime (I suppose the lights are static by default), the program shows a message that says “LIGHTS NEED TO BE REBUILT (n unbuilt object(s))”.

Thank you.

Sorry for digging it up, but I just come out on the same problem, but I just found a solution. Mayby it will help someone:

Create a blueprint and add there any light components you wish. Set their mobility on movable. After that spawn this blueprint instead of default light.

1 Like