Version:
2021.1
2020.2
2020.1
2019.2
2019.1
2018.3
Back to list
Scene :: createPositionalLight
Synopsis
Create a new positional light
GUI Dialog
Script function
scene.createPositionalLight
(
name
,
color
,
power
[,
position
[,
parent
]]) ->
light
Parameters
name
(
String
) : Name of the light
color
(
Color
) : Color of the light
power
(
Double
) : Intensity of the light
position
(
Point3
)
[optional]
: Relative position of the light
parent
(
Assembly
)
[optional]
: Parent assembly
Return value
light
(
PositionalLight
) : The created positional light