Light Source

Parent

The base class for all light you can build.

Properties

colorSlot : Int

The color slot the light uses.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Color Slot

intensity : Float

The intensity of the light.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Intensity

isLightEnabled : Bool

True if the light is enabled

Details
Flags RuntimeSync RuntimeParallel

Display Name

Is Light Enabled

isTimeOfDayAware : Bool

True if the light should automatically turn on and off depending on the time of the day.

Details
Flags RuntimeSync RuntimeParallel

Display Name

Is Time of Day Aware

Functions

getColorFromSlot (slot : Int) → color : Struct<Color>

Returns the light color that is referenced by the given slot.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Color from Slot

Parameters
Name Type Description

Slot slot

Int

The slot you want to get the referencing color from.

Return Values
Name Type Description

Color color

Struct<Color>

The color this slot references.

setColorFromSlot (slot : Int, color : Struct<Color>)

Allows to update the light color that is referenced by the given slot.

Details

Flags

RuntimeSync MemberFunc

Display Name

Set Color from Slot

Parameters
Name Type Description

Slot slot

Int

The slot you want to update the referencing color for.

Color color

Struct<Color>

The color this slot should now reference.