Inherits: Resource < Reference < Object
Defines a 2D polygon for LightOccluder2D.
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
bool | closed | true |
CullMode | cull_mode | 0 |
PoolVector2Array | polygon | PoolVector2Array( ) |
enum CullMode:
Default | true |
Setter | set_closed(value) |
Getter | is_closed() |
If true
, 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 | 0 |
Setter | set_cull_mode(value) |
Getter | get_cull_mode() |
The culling mode to use.
Default | PoolVector2Array( ) |
Setter | set_polygon(value) |
Getter | get_polygon() |
A Vector2 array with the index for polygon's vertices positions.
Note: The returned value is a copy of the underlying array, rather than a reference.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_occluderpolygon2d.html