Table of Contents

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

bool

Remarks

  • void set_closed(bool value)
  • bool is_closed

cull_mode

The culling mode to use.

var cull_mode : int = 0

Property Value

int

Remarks

  • void set_cull_mode(int value)
  • int get_cull_mode

polygon

A Vector2 array with the index for polygon's vertices positions.

var polygon : PackedVector2Array = PackedVector2Array()

Property Value

PackedVector2Array

Remarks