What it does
scene.setEnvironmentTexture sets EnvironmentTexture on a scene object. It takes url.
Signature
scene.setEnvironmentTexture(url)Arguments
url
Example · generated
function start() { scene.setEnvironmentTexture('/assets/file.png');}scene.setEnvironmentTexture is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.