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 |
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 |
| Name | Type | Description |
|---|---|---|
Slot |
Int |
The slot you want to get the referencing color from. |
| Name | Type | Description |
|---|---|---|
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 |
| Name | Type | Description |
|---|---|---|
Slot |
Int |
The slot you want to update the referencing color for. |
Color |
Struct<Color> |
The color this slot should now reference. |