2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "OccluderPolygon2D" inherits= "Resource" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-13 04:42:36 +08:00
<brief_description >
2017-10-30 01:19:38 +08:00
Defines a 2D polygon for LightOccluder2D.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2017-10-30 01:19:38 +08:00
Editor facility that helps you draw a 2D polygon used as resource for [LightOccluder2D].
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
</tutorials>
<members >
2019-06-29 18:38:01 +08:00
<member name= "closed" type= "bool" setter= "set_closed" getter= "is_closed" default= "true" >
2019-06-29 21:24:23 +08:00
If [code]true[/code], closes the polygon. A closed OccluderPolygon2D occludes the light coming from any direction. An opened OccluderPolygon2D occludes the light only at its outline's direction.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "cull_mode" type= "int" setter= "set_cull_mode" getter= "get_cull_mode" enum= "OccluderPolygon2D.CullMode" default= "0" >
2019-06-29 21:24:23 +08:00
The culling mode to use.
2017-09-13 04:42:36 +08:00
</member>
2019-09-25 01:45:03 +08:00
<member name= "polygon" type= "PackedVector2Array" setter= "set_polygon" getter= "get_polygon" default= "PackedVector2Array()" >
2019-06-22 07:04:47 +08:00
A [Vector2] array with the index for polygon's vertices positions.
2017-09-13 04:42:36 +08:00
</member>
</members>
<constants >
2017-11-25 06:16:30 +08:00
<constant name= "CULL_DISABLED" value= "0" enum= "CullMode" >
2019-06-22 07:04:47 +08:00
Culling is disabled. See [member cull_mode].
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "CULL_CLOCKWISE" value= "1" enum= "CullMode" >
2019-06-22 07:04:47 +08:00
Culling is performed in the clockwise direction. See [member cull_mode].
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "CULL_COUNTER_CLOCKWISE" value= "2" enum= "CullMode" >
2019-06-22 07:04:47 +08:00
Culling is performed in the counterclockwise direction. See [member cull_mode].
2017-09-13 04:42:36 +08:00
</constant>
</constants>
</class>