Header menu logo Mibo

DirectionalLight2D Module

Convenience builders for DirectionalLight2D.

Functions and values

Function or value Description

create direction

Full Usage: create direction

Parameters:
Returns: DirectionalLight2D

Creates a directional light. Defaults: White, intensity 1, casts shadows.

direction : Vector2
Returns: DirectionalLight2D

withCastsShadows casts l

Full Usage: withCastsShadows casts l

Parameters:
Returns: DirectionalLight2D
Modifiers: inline

Sets whether this light casts shadows.

casts : bool
l : DirectionalLight2D
Returns: DirectionalLight2D

withColor color l

Full Usage: withColor color l

Parameters:
Returns: DirectionalLight2D
Modifiers: inline

Sets the color.

color : Color
l : DirectionalLight2D
Returns: DirectionalLight2D

withIntensity intensity l

Full Usage: withIntensity intensity l

Parameters:
Returns: DirectionalLight2D
Modifiers: inline

Sets the intensity.

intensity : float32
l : DirectionalLight2D
Returns: DirectionalLight2D

Type something to start searching.