I can get but not set the intensity and attenuation radius of a spotlight (component) in a blueprint.
I can set other light properties (inner/outer cone, source radius and so on), but i get no contextual proposition for setting neither intensity nor attenuation radius.
The ‘Intensity’ of a spot light can be set with the ‘Set Brightness’ function. (see image).
I’m not sure about the attenuation radius, but the way I’d go about finding it out is dragging a node from the SpotLight instance and search for ‘set’.
Hi,
Exactly: no problem for finding it in the component window, but i would like to access it from a graph (“construction script” or “event graph”).
Thanks
Cedric
My problem is that i can get it, but i can’t set it. When i type “attenuation”, i am only proposed a “get attenuation radius”, but no “set attenuation radius”.
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.
Technically, it’s still a question, but as i was given a workaround (playing with distance/intensity instead of attenuation radius), no problem to mark it solved.
I would respectfully suggest two things:
renaming “set brightness” into “set intensity”, to have a coherent vocabulary in different contexts
in case it is possible to set the attenuation radius (which i still don’t know), making it appear as “set attenuation radius”, so it can be found easily
Using ‘Set Brightness’ does NOT change Intensity. This is an oversight on Epic’s behalf when Brightness was renamed (not entirely sure why that had to be done).
Using the Set Brightness node in blueprints does change the lights Intensity. You won’t see the values change in the editor. What are you experiencing?
We haven’t heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you still have questions about this, please feel free to post back here.