Header menu logo Mibo

DirectionalLight2D Type

A directional light for 2D scenes (e.g. sunlight).

Record fields

Record Field Description

CastsShadows

Full Usage: CastsShadows

Field type: bool

Whether this light casts shadows.

Field type: bool

Color

Full Usage: Color

Field type: Color

Light color.

Field type: Color

Direction

Full Usage: Direction

Field type: Vector2

Direction the light travels (normalized at upload time).

Field type: Vector2

Intensity

Full Usage: Intensity

Field type: float32

Intensity multiplier.

Field type: float32

Type something to start searching.