LightOccluder2D.xml 959 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="LightOccluder2D" inherits="Node2D" category="Core" version="3.1">
  3. <brief_description>
  4. Occludes light cast by a Light2D, casting shadows.
  5. </brief_description>
  6. <description>
  7. Occludes light cast by a Light2D, casting shadows. The LightOccluder2D must be provided with an [OccluderPolygon2D] in order for the shadow to be computed.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="light_mask" type="int" setter="set_occluder_light_mask" getter="get_occluder_light_mask">
  17. The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s).
  18. </member>
  19. <member name="occluder" type="OccluderPolygon2D" setter="set_occluder_polygon" getter="get_occluder_polygon">
  20. The [OccluderPolygon2D] used to compute the shadow.
  21. </member>
  22. </members>
  23. <constants>
  24. </constants>
  25. </class>