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

Function makeCustomObject3D

GDJS/tests/tests/CustomRuntimeObject3D.js:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 * @return {Promise<{runtimeScene: gdjs.RuntimeScene, customObject: gdjs.CustomRuntimeObject3D}>}
43 */
44 const makeCustomObject3D = async () => {
45 const runtimeGame = await gdjs.getPixiRuntimeGameWithAssets();
46 const runtimeScene = createSceneWithLayer(runtimeGame);
47 const customObject = createCustomObject(runtimeScene);
48 return {
49 runtimeScene,
50 customObject,
51 };
52 };
53
54 it('can translate, scale and rotate', async () => {
55 const { customObject } = await makeCustomObject3D();

Callers 1

Calls 2

createSceneWithLayerFunction · 0.70
createCustomObjectFunction · 0.70

Tested by

no test coverage detected