Difficulty Updating Light

Hi, if anyone could help, I have a very beginner question but I can’t seem to find an answer anywhere.

What I am trying to do in the script DiscoModeEngaged.js is toggle the point light “Light Above da Arena” every fifty frames from a red light to nothing, and have it do so continuously. However, the light does not seem to be updating and I can’t figure out why. Any help would be greatly appreciated.

What I eventually hope to do with this script is to slowly fade between multiple colors.


Hi, this seems like a bug actually in Engine.
I just have pushed a fix for this: https://github.com/playcanvas/engine/pull/868

Fix will be deployed and will take effect some time later (upcoming days).

Thank you for making simple example and reporting a problem.

Great, thank you so much for your help!