Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OccluderPolygon2D
继承: Resource < RefCounted < Object
为 LightOccluder2D 定义一个 2D 多边形。
描述
编辑工具,帮助你绘制一个 2D 多边形用作资源 LightOccluder2D。
属性
|
||
|
||
|
枚举
enum CullMode: 🔗
CullMode CULL_DISABLED = 0
禁用剔除。见 cull_mode。
CullMode CULL_CLOCKWISE = 1
按顺时针方向进行剔除。见 cull_mode。
CullMode CULL_COUNTER_CLOCKWISE = 2
按逆时针方向进行剔除。见 cull_mode。
属性说明
如果为 true
,封闭该多边形。一个封闭的polygon2d封闭来自任何方向的光。一个开放的OccluderPolygon2D只在其轮廓方向上遮挡光。
要使用的剔除模式。
PackedVector2Array polygon = PackedVector2Array()
🔗
void set_polygon(value: PackedVector2Array)
PackedVector2Array get_polygon()
具有多边形顶点位置索引的 Vector2 数组。
Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector2Array for more details.