Skip to content
AEOWUN
Docs Menu

Lighting

Choose the World lighting and test it while building.

Place a light

Worldkiln uses Light Cells to add lighting to a scene. Open your project, create a Light in the World, then select it to inspect its settings in Properties.

Place lights around the areas you want to illuminate, such as an interior, path or entrance. Use the viewport to judge their position, then test the result in Play.

Configure world lighting

Open Project Settings → World Lighting to work with the current project's lighting configuration.

Worldkiln also provides Experimental Lighting — Beta controls for the newer lighting methods, shadows and related rendering settings. You can compare the scene under different settings while editing.

For the experimental controls, see Experimental Lighting.

Control a Light during Play

A Light Cell uses the regular Cell properties for visibility and enabled state. Set enabled to turn the light on or off during the current Play session.

const lights = getAllCellsOfClass("Light")
if basket.len(lights) > 0 {
    lights[0].enabled = false
}

Choose the Light Cell you want to control from the returned basket. See the Cell API for the available properties.

Test your scene

Move between the editor camera and Play to see how the light affects the scene from a player's view. Adjust the light placement and world settings, then save the project.

Next: Editor workspace and Physics.