Class OccluderPolygon2D
Defines a 2D polygon for LightOccluder2D.
- Inheritance
-
OccluderPolygon2D
Remarks
Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.
Properties
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.
var closed : bool = true
Property Value
Remarks
cull_mode
The culling mode to use.
var cull_mode : int = 0
Property Value
Remarks
polygon
A Vector2 array with the index for polygon's vertices positions.
var polygon : PackedVector2Array = PackedVector2Array()
Property Value
Remarks
- void set_polygon(PackedVector2Array value)
- PackedVector2Array get_polygon