Occludes light cast by a Light2D, casting shadows.
    public class LightOccluder2D : Node2D

Occludes light cast by a Light2D, casting shadows. The LightOccluder2D must be provided with an OccluderPolygon2D in order for the shadow to be computed.

Inheritance Chain

Constructors

    public LightOccluder2D()

Properties

    public int LightMask { get; set; }

The LightOccluder2D’s light mask. The LightOccluder2D will cast shadows only from Light2D(s) that have the same light mask(s).

    public OccluderPolygon2D Occluder { get; set; }

The OccluderPolygon2D used to compute the shadow.

Methods

    [Obsolete("GetOccluderLightMask is deprecated. Use the LightMask property instead.")]
    public int GetOccluderLightMask()

Getter for LightMask

    [Obsolete("GetOccluderPolygon is deprecated. Use the Occluder property instead.")]
    public OccluderPolygon2D GetOccluderPolygon()

Getter for Occluder

    [Obsolete("SetOccluderLightMask is deprecated. Use the LightMask property instead.")]
    public void SetOccluderLightMask(int mask)

Setter for LightMask

    [Obsolete("SetOccluderPolygon is deprecated. Use the Occluder property instead.")]
    public void SetOccluderPolygon(OccluderPolygon2D polygon)

Setter for Occluder

Tags: