May 25, 2014, 11:03am
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.
Am i missing something ?
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’.
I hope that helps.
May 25, 2014, 3:11pm
Thank you very much DanZaidan !
It more than helps, it answers the question
I guess i’m going to have to try all those mysterious 'set’s, maybe that radius is hidden somewhere with a fake name^^
Attenuation radius should be in the details of the component window of a blueprint where you have that as a component.
Are you trying to adjust this during runtime in the blueprint?
May 27, 2014, 8:43pm
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”).
You can get the attenuation radius from the light by placing a GET node of the light component then dragging off it enter ATTENUATION.
May 27, 2014, 9:51pm
Thanks for your answer.
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.
June 3, 2014, 3:44pm
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
All the best !
Anyone found this hidden function to set the attenuation radius of a light in BP ?
August 21, 2014, 1:43pm
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).
August 21, 2014, 5:33pm
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?
September 8, 2014, 7:10pm
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.