Hi everyone,
I am aware that light components are a relatively recent additions, but I’ve hit a wall trying to modify their properties (like changing the color, adjusting intensity, or enabling/disabling them) at runtime from a .script file.
It seems like the properties available in the editor aren’t accessible via code. For example, when I try to use go.get() or go.set() on a Point Light like this:
local light_color = go.get("#point_light", "color")
go.set("#point_light", "intensity", 1.5)
I get the following error in the console:
'#point_light' does not have any property called 'color'
(and the exact same issue applies to other properties and other light types, like Ambient or Spot).
I’ve also checked the API reference but couldn’t find any specific documentation on runtime property access for these lights.
Am I missing a specific syntax to access these properties, a specific setup at the render pipeline level, or is runtime modification simply not yet supported?
Thanks in advance for any help!