UPDATE: i kinda of solved this, i think its worth pointing this post in the future.
I’m testing a new lighting system that has material support this time. While tweaking values from inside the editor (the scripts gui) i found out that my ligth sources were being duplicated for some reason. Specifially, this system has point and directional lights (like sun and a lamp). My scene has 3 point lights and 2 directional lights and when i update one of the lamps script it seems like the number of point lights is duplicated. This is the log:
its like this in the code:
When updating it seems like the engine/editor just duplicated my point light objects or their scripts or something alike. I dont really know what it is, as of now i will try to find if im not doing anythig wrong in the scripts and test if this happens to the directional lights as well.