I have a complete scene with objects and lights. When I try to scale the scene then all the lights stay at their original position. How to handle lights when scaling? I found no way to do it programmaticaly because Spatial has no getter method for lights.
@mathias4u said: I have a complete scene with objects and lights. When I try to scale the scene then all the lights stay at their original position. How to handle lights when scaling? I found no way to do it programmaticaly because Spatial has no getter method for lights.
Can’t you do getLocalLightList to get the lights that are attached to the Spatial? Or getWorldLightList?
1 Like
There are 10 methods starting with getLocal…
And here are even two methods for lights… I must have been extremely tired
So your tip helped me a lot. Thx