Struct OccluderPolygon2D

Defines a 2D polygon for LightOccluder2D.

struct OccluderPolygon2D ;

Editor facility that helps you draw a 2D polygon used as resource for LightOccluder2D.

Properties

NameTypeDescription
closed[get, set] boolIf 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.
cullMode[get, set] OccluderPolygon2D.CullModeThe culling mode to use.
polygon[get, set] PoolArray!(godot.core.vector2.Vector2)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.

Methods

NameDescription
getCullMode
getPolygon
isClosed
setClosed
setCullMode
setPolygon

Enums

NameDescription
Constants
CullMode