LightOccluder2D

Inherits: Node2D < CanvasItem < Node < Object

遮挡由Light2D投射的光线,投射阴影。

描述

遮挡Light2D投射的灯光,投射阴影。为了计算阴影,必须为LightOccluder2D提供OccluderPolygon2D

属性说明

  • int light_mask

Default

1

Setter

set_occluder_light_mask(value)

Getter

get_occluder_light_mask()

LightOccluder2D的灯光遮罩。LightOccluder2D将仅从具有相同灯光遮罩的Light2D投射阴影。


Setter

set_occluder_polygon(value)

Getter

get_occluder_polygon()

用于计算阴影的OccluderPolygon2D