f7f6115f76
- Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
37 lines
1.6 KiB
XML
37 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="OccluderPolygon2D" inherits="Resource" category="Core" version="3.2">
|
|
<brief_description>
|
|
Defines a 2D polygon for LightOccluder2D.
|
|
</brief_description>
|
|
<description>
|
|
Editor facility that helps you draw a 2D polygon used as resource for [LightOccluder2D].
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
</methods>
|
|
<members>
|
|
<member name="closed" type="bool" setter="set_closed" getter="is_closed">
|
|
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. Default value: [code]true[/code].
|
|
</member>
|
|
<member name="cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" enum="OccluderPolygon2D.CullMode">
|
|
The culling mode to use. Default value: [constant CULL_DISABLED].
|
|
</member>
|
|
<member name="polygon" type="PoolVector2Array" setter="set_polygon" getter="get_polygon">
|
|
A [Vector2] array with the index for polygon's vertices positions.
|
|
[b]Note:[/b] The returned value is a copy of the underlying array, rather than a reference.
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
<constant name="CULL_DISABLED" value="0" enum="CullMode">
|
|
Culling is disabled. See [member cull_mode].
|
|
</constant>
|
|
<constant name="CULL_CLOCKWISE" value="1" enum="CullMode">
|
|
Culling is performed in the clockwise direction. See [member cull_mode].
|
|
</constant>
|
|
<constant name="CULL_COUNTER_CLOCKWISE" value="2" enum="CullMode">
|
|
Culling is performed in the counterclockwise direction. See [member cull_mode].
|
|
</constant>
|
|
</constants>
|
|
</class>
|