MCPcopy
hub / github.com/4ian/GDevelop / createSceneWithLayer

Function createSceneWithLayer

GDJS/tests/tests/CustomRuntimeObject3D.js:25–39  ·  view source on GitHub ↗
(runtimeGame)

Source from the content-addressed store, hash-verified

23 };
24
25 const createSceneWithLayer = (runtimeGame) => {
26 const runtimeScene = new gdjs.RuntimeScene(runtimeGame);
27 runtimeScene.addLayer({
28 name: '',
29 visibility: true,
30 cameras: [],
31 effects: [],
32 ambientLightColorR: 0,
33 ambientLightColorG: 0,
34 ambientLightColorB: 0,
35 isLightingLayer: false,
36 followBaseLayerCamera: false,
37 });
38 return runtimeScene;
39 };
40
41 /**
42 * @return {Promise<{runtimeScene: gdjs.RuntimeScene, customObject: gdjs.CustomRuntimeObject3D}>}

Callers 1

makeCustomObject3DFunction · 0.70

Calls 1

addLayerMethod · 0.95

Tested by

no test coverage detected