I have this simple transition I’m doing to change the colour of my lights.
This code works perfectly if the lights are point lights. But if they are rect lights (as I need them to be), it doesn’t work.
However, since this works for me both with point lights and with the scalar parameter I’m changing for the shader, I don’t think it’s true that you can’t run timelines inside the iteration of a loop, as I’m doing so successfully repeatedly.
The only thing that seems to break it is using rect lights.
Plus, I did try your suggestion and it didn’t work either. It works if I change the rect lights into point lights, though.
At this point I’m thinking I might as well use point lights then, although rect lights are more appropriate to my scenario (I’m lighting a small room from a ceiling lamp).
Unless anyone knows of a way to fix this (apparently) UE 5.4 bug?
hi,I think it’s true.if you put a timeline in a loop it will begin the timeline agin and again.Until the loop is ended.then the timeline works for the last light in the array.
It was nothing, any help is already a Rec light in the right direction, right?
About loops and timelines. Well, as far as I know from having used a similar setup, loops run every frame, so every time they change the color of a rec light, it restarts the timeline to run another one right after. All of this very quickly.
What you could do is something like this to use your array of rec lights: