2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-04-01 18:33:56 +08:00
<class name= "SpotLight" inherits= "Light" category= "Core" version= "3.2" >
2017-09-13 04:42:36 +08:00
<brief_description >
2019-06-22 07:04:47 +08:00
A spotlight, such as a reflector spotlight or a lantern.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2019-06-22 07:04:47 +08:00
A Spotlight is a type of [Light] node that emits lights in a specific direction, in the shape of a cone. The light is attenuated through the distance. This attenuation can be configured by changing the energy, radius and attenuation parameters of [Light].
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
2018-11-05 15:46:27 +08:00
<link > https://docs.godotengine.org/en/latest/tutorials/3d/lights_and_shadows.html</link>
2017-09-13 04:42:36 +08:00
</tutorials>
<methods >
</methods>
<members >
2019-06-29 18:38:01 +08:00
<member name= "spot_angle" type= "float" setter= "set_param" getter= "get_param" default= "45.0" >
2019-06-22 07:04:47 +08:00
The spotlight's angle in degrees.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "spot_angle_attenuation" type= "float" setter= "set_param" getter= "get_param" default= "1.0" >
2019-06-22 07:04:47 +08:00
The spotlight's angular attenuation curve.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "spot_attenuation" type= "float" setter= "set_param" getter= "get_param" default= "1.0" >
2019-06-22 07:04:47 +08:00
The spotlight's light energy attenuation curve.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "spot_range" type= "float" setter= "set_param" getter= "get_param" default= "5.0" >
2019-06-22 07:04:47 +08:00
The maximal range that can be reached by the spotlight.
2017-09-13 04:42:36 +08:00
</member>
</members>
<constants >
</constants>
</class>