I’m new to Amazon Lumberyard. Just trying to perform a simple stuff like ToggleLight for Point light, but facing a problem.
Here’s the console output:
[Error] (Script) - lightmanager.lua:44: attempt to call field ‘ToggleLight’ (a nil value)
I also tried to use a similar script from the samples (\dev\SamplesProject\Scripts\Components) called LightFlicker, and faced the same problem.
The line causing error in my (lightmanager.lua) script:
The following screenshot showing how the light entity looks in Entity Inspector:
However, I can access the Transform component form this LightManager script:
Would appreciate for any info. Thanks.