diff --git a/extensions/reviewed/StaticBatch3D.json b/extensions/reviewed/StaticBatch3D.json new file mode 100644 index 000000000..7cf6e1f86 --- /dev/null +++ b/extensions/reviewed/StaticBatch3D.json @@ -0,0 +1,218 @@ +{ + "author": "", + "category": "Advanced", + "dimension": "3D", + "extensionNamespace": "", + "fullName": "Static 3D scenery batching", + "gdevelopVersion": ">=5.5.222", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWdyb3VwIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEsMVY1SDJWMTlIMVYyM0g1VjIySDE5VjIzSDIzVjE5SDIyVjVIMjNWMUgxOVYySDVWMU01LDRIMTlWNUgyMFYxOUgxOVYyMEg1VjE5SDRWNUg1TTYsNlYxNEg5VjE4SDE4VjlIMTRWNk04LDhIMTJWMTJIOE0xNCwxMUgxNlYxNkgxMVYxNEgxNCIgLz48L3N2Zz4=", + "name": "StaticBatch3D", + "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/group.svg", + "shortDescription": "Draw many 3D models that never move as a few meshes, to make scenery faster to draw.", + "version": "0.1.0", + "description": [ + "Scenery made of hundreds of 3D model instances (stands, boards, houses, rocks) costs one or more draw calls per instance, which is what slows down phones and older computers the most.", + "", + "The action \"Draw 3D models together\" merges the instances of the chosen objects into one mesh per material and hides them: the scenery looks the same and is drawn in a few draw calls.", + "", + "- Use it once, at the beginning of the scene, on objects that never move.", + "- Merged instances must not be moved, resized, hidden or shown after: the merged scenery would not follow.", + "- Optionally, the instances are deleted after being merged: they are still drawn but take no time at each frame. Use it for scenery that the events never use again (no collision, no picking).", + "- Models with an animation, morph targets or transparent materials are left as they are.", + "- The merged scenery is removed when the scene is unloaded." + ], + "origin": { + "identifier": "StaticBatch3D", + "name": "gdevelop-extension-store" + }, + "tags": [ + "3d", + "performance", + "batching", + "optimization", + "scenery", + "draw calls" + ], + "authorIds": [], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [], + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "onSceneUnloading", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": [ + "const batchesByScene = gdjs.__staticBatch3DExtension || (gdjs.__staticBatch3DExtension = new WeakMap());", + "for (const mesh of batchesByScene.get(runtimeScene) || []) {", + " mesh.removeFromParent();", + " mesh.geometry.dispose();", + " mesh.material.dispose();", + "}", + "batchesByScene.delete(runtimeScene);" + ], + "parameterObjects": "", + "useStrict": true, + "eventsSheetExpanded": false + } + ], + "parameters": [], + "objectGroups": [] + }, + { + "description": "Merge the 3D models of the instances into one mesh per material, and hide (or delete) the instances. To use once, on objects that never move. Models with animations or transparent materials are left as they are.", + "fullName": "Draw 3D models together", + "functionType": "Action", + "name": "MergeModels", + "sentence": "Draw the instances of _PARAM1_ together, as static scenery (delete the instances: _PARAM2_)", + "events": [ + { + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": [ + "const objects = eventsFunctionContext.getObjects(\"Objects\");", + "/** The merged meshes of each scene, to remove them when it is unloaded. */", + "const batchesByScene = gdjs.__staticBatch3DExtension || (gdjs.__staticBatch3DExtension = new WeakMap());", + "if (!batchesByScene.has(runtimeScene)) batchesByScene.set(runtimeScene, []);", + "const batches = batchesByScene.get(runtimeScene);", + "const textureKey = texture => (texture ? texture.uuid : \"\");", + "const materialKey = material => [", + " material.type, textureKey(material.map), textureKey(material.normalMap), textureKey(material.emissiveMap),", + " textureKey(material.roughnessMap), textureKey(material.metalnessMap), textureKey(material.aoMap), textureKey(material.envMap),", + " material.color ? material.color.getHex() : \"\", material.emissive ? material.emissive.getHex() : \"\", material.emissiveIntensity,", + " material.roughness, material.metalness, material.envMapIntensity, material.alphaTest, material.side, material.vertexColors, material.flatShading,", + "].join(\"|\");", + "const canBeMerged = mesh =>", + " !mesh.isSkinnedMesh && !mesh.isInstancedMesh && !Array.isArray(mesh.material) && !mesh.material.transparent &&", + " mesh.geometry.attributes.position && mesh.geometry.attributes.normal && Object.keys(mesh.geometry.morphAttributes).length === 0;", + "", + "const merged = [];", + "/** Meshes with the same material, layer and shadows, by key. */", + "const groups = new Map();", + "for (const object of objects) {", + " const model = object.get3DRendererObject();", + " if (!model || object.isHidden() || object.__isInStaticBatch) continue;", + " const meshes = [];", + " model.traverse(node => { if (node.isMesh && node.visible) meshes.push(node); });", + " // An object is merged whole or not at all: it is hidden after.", + " if (meshes.length === 0 || !meshes.every(canBeMerged)) continue;", + " const renderer = object.getRenderer();", + " renderer.updatePosition();", + " renderer.updateRotation();", + " renderer.updateSize();", + " model.updateWorldMatrix(true, true);", + " for (const mesh of meshes) {", + " const attributes = mesh.geometry.attributes;", + " const key = [", + " object.getLayer(), materialKey(mesh.material), mesh.castShadow, mesh.receiveShadow,", + " attributes.uv ? \"uv\" : \"\", attributes.color ? \"color\" + attributes.color.itemSize : \"\",", + " ].join(\"|\");", + " let group = groups.get(key);", + " if (!group) groups.set(key, (group = { layerName: object.getLayer(), meshes: [], vertexCount: 0, indexCount: 0 }));", + " group.meshes.push(mesh);", + " group.vertexCount += attributes.position.count;", + " group.indexCount += mesh.geometry.index ? mesh.geometry.index.count : attributes.position.count;", + " }", + " object.__isInStaticBatch = true;", + " merged.push(object);", + "}", + "", + "const vertex = new THREE.Vector3();", + "const matrix = new THREE.Matrix4();", + "const sceneInverse = new THREE.Matrix4();", + "const normalMatrix = new THREE.Matrix3();", + "for (const group of groups.values()) {", + " const first = group.meshes[0];", + " // The merged mesh is put in the 3D scene of the layer: vertices are in its coordinates.", + " const threeScene = runtimeScene.getLayer(group.layerName).getRenderer().getThreeScene();", + " threeScene.updateWorldMatrix(true, false);", + " sceneInverse.copy(threeScene.matrixWorld).invert();", + " const hasUv = !!first.geometry.attributes.uv;", + " const colorSize = first.geometry.attributes.color ? first.geometry.attributes.color.itemSize : 0;", + " const positions = new Float32Array(group.vertexCount * 3);", + " const normals = new Float32Array(group.vertexCount * 3);", + " const uvs = hasUv ? new Float32Array(group.vertexCount * 2) : null;", + " const colors = colorSize ? new Float32Array(group.vertexCount * colorSize) : null;", + " const indices = new Uint32Array(group.indexCount);", + " let vertexOffset = 0;", + " let indexOffset = 0;", + " for (const mesh of group.meshes) {", + " const { position, normal, uv, color } = mesh.geometry.attributes;", + " matrix.multiplyMatrices(sceneInverse, mesh.matrixWorld);", + " normalMatrix.getNormalMatrix(matrix);", + " for (let index = 0; index < position.count; index++) {", + " const target = vertexOffset + index;", + " vertex.fromBufferAttribute(position, index).applyMatrix4(matrix).toArray(positions, target * 3);", + " vertex.fromBufferAttribute(normal, index).applyMatrix3(normalMatrix).normalize().toArray(normals, target * 3);", + " if (uvs) { uvs[target * 2] = uv.getX(index); uvs[target * 2 + 1] = uv.getY(index); }", + " if (colors) for (let channel = 0; channel < colorSize; channel++) colors[target * colorSize + channel] = color.getComponent(index, channel);", + " }", + " // A mirrored object (the Y axis of the scene goes down) has its faces turned inside out.", + " const isMirrored = matrix.determinant() < 0;", + " const meshIndex = mesh.geometry.index;", + " const count = meshIndex ? meshIndex.count : position.count;", + " for (let corner = 0; corner + 2 < count; corner += 3) {", + " const a = meshIndex ? meshIndex.getX(corner) : corner;", + " const b = meshIndex ? meshIndex.getX(corner + 1) : corner + 1;", + " const c = meshIndex ? meshIndex.getX(corner + 2) : corner + 2;", + " indices[indexOffset + corner] = vertexOffset + a;", + " indices[indexOffset + corner + 1] = vertexOffset + (isMirrored ? c : b);", + " indices[indexOffset + corner + 2] = vertexOffset + (isMirrored ? b : c);", + " }", + " vertexOffset += position.count;", + " indexOffset += count;", + " }", + " const geometry = new THREE.BufferGeometry();", + " geometry.setAttribute(\"position\", new THREE.BufferAttribute(positions, 3));", + " geometry.setAttribute(\"normal\", new THREE.BufferAttribute(normals, 3));", + " if (uvs) geometry.setAttribute(\"uv\", new THREE.BufferAttribute(uvs, 2));", + " if (colors) geometry.setAttribute(\"color\", new THREE.BufferAttribute(colors, colorSize));", + " geometry.setIndex(new THREE.BufferAttribute(indices, 1));", + " geometry.computeBoundingSphere();", + " geometry.computeBoundingBox();", + " const merged = new THREE.Mesh(geometry, first.material.clone());", + " merged.name = \"StaticBatch\";", + " merged.castShadow = first.castShadow;", + " merged.receiveShadow = first.receiveShadow;", + " merged.matrixAutoUpdate = false;", + " threeScene.add(merged);", + " batches.push(merged);", + "}", + "// The objects are not drawn anymore: deleted, they also stop being processed at every frame.", + "const shouldDelete = eventsFunctionContext.getArgument(\"DeleteInstances\");", + "for (const object of merged) {", + " if (shouldDelete) object.deleteFromScene();", + " else object.hide(true);", + "}" + ], + "parameterObjects": "", + "useStrict": true, + "eventsSheetExpanded": false + } + ], + "parameters": [ + { + "description": "3D models", + "name": "Objects", + "supplementaryInformation": "Scene3D::Model3DObject", + "type": "objectList" + }, + { + "description": "Delete the instances after merging them", + "longDescription": "Deleted instances are still drawn, merged, but do not exist for the events anymore and take no time at each frame.", + "name": "DeleteInstances", + "type": "yesorno", + "defaultValue": "no", + "optional": true + } + ], + "objectGroups": [] + } + ], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [] +} diff --git a/extensions/reviewed/Terrain3D.json b/extensions/reviewed/Terrain3D.json index 66ab2427c..aa05ba4b2 100644 --- a/extensions/reviewed/Terrain3D.json +++ b/extensions/reviewed/Terrain3D.json @@ -10,7 +10,7 @@ "name": "Terrain3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/10e0a26c0d500830dfe23b94138beb0ef61607ba62bca05a5aa5c849777f1b06_terrain.svg", "shortDescription": "A ground with hills and valleys that can be sculpted and painted in the editor, with collisions.", - "version": "0.3.2", + "version": "0.4.0", "description": [ "A 3D terrain object for open worlds, adventure or racing games: hills, mountains, islands or valleys, with painted layers of grass, dirt, rock or sand.", "", @@ -3517,6 +3517,8 @@ " this.uniforms.grassWorldToLocal.value.setFromMatrix4(this._matrix.copy(this.group.matrixWorld).invert());", " this._updateBendingObjects();", " if (!camera) return;", + " // A hidden grass makes no patch of blades: they are made when it is shown again.", + " if (this.object.isHidden()) return;", "", " // Far chunks are hidden, and thinned out before (in 3D world units).", " const fadeDistance = Math.max(this.object._getFadeDistance(), 1) / getWorldScale(this.object);", @@ -3594,7 +3596,7 @@ "// Copies are hidden in chunks: big chunks mean fewer draw calls, small ones", "// hide more copies out of the screen.", "const MIN_CHUNK_SIZE = 500;", - "const MAX_CHUNK_SIZE = 2000;", + "const MAX_CHUNK_SIZE = 4000;", "// Copies shrink to nothing over this part of the draw distance, instead of popping out.", "const FADE_PART = 0.15;", "const MAX_COPIES = 200000;", @@ -3815,11 +3817,12 @@ " * objects with a 90° rotation around X, for models standing on Y).", " * @param {THREE.Object3D} modelScene", " * @param {object} uniforms Uniforms added to the materials.", - " * @param {{isStandingOnZ: boolean, isAnchoredAtOrigin: boolean}} options", + " * @param {{isStandingOnZ: boolean, isAnchoredAtOrigin: boolean, frame?: {height: number, normalization: THREE.Matrix4}}} options", " * The anchor is the origin of the model, or else the center of its base.", + " * With the `frame` of another model, this one is scaled and anchored like it (a simplified version made at the same size).", " * @returns {ModelParts}", " */", - "const createModelParts = (modelScene, uniforms, { isStandingOnZ, isAnchoredAtOrigin }) => {", + "const createModelParts = (modelScene, uniforms, { isStandingOnZ, isAnchoredAtOrigin, frame }) => {", " modelScene.updateMatrixWorld(true);", " const rootInverse = modelScene.matrixWorld.clone().invert();", " const standUp = isStandingOnZ ? new THREE.Matrix4() : new THREE.Matrix4().makeRotationX(Math.PI / 2);", @@ -3835,9 +3838,9 @@ " });", " if (box.isEmpty()) return emptyModelParts;", "", - " const height = Math.max(box.max.z - box.min.z, 0.000001);", + " const height = frame ? frame.height : Math.max(box.max.z - box.min.z, 0.000001);", " // The Y axis of the scene goes down: the model is flipped, like 3D model objects.", - " const normalization = new THREE.Matrix4()", + " const normalization = frame ? frame.normalization : new THREE.Matrix4()", " .makeScale(1 / height, -1 / height, 1 / height)", " .multiply(", " isAnchoredAtOrigin", @@ -3880,6 +3883,7 @@ " // The sizes are relative to a height of 1, except sourceHeight which is in the model file units.", " return {", " parts,", + " frame: { height, normalization },", " sourceHeight: height,", " width: (box.max.x - box.min.x) / height,", " depth: (box.max.y - box.min.y) / height,", @@ -3910,7 +3914,7 @@ " this.object = object;", " this.group = new THREE.Group();", " object.get3DRendererObject().add(this.group);", - " /** @type {Array<{firstCellI: number, firstCellJ: number, meshes: THREE.InstancedMesh[], copies: Copy[], center: THREE.Vector3, radius: number}>} */", + " /** @type {Array<{firstCellI: number, firstCellJ: number, meshes: THREE.InstancedMesh[], farMeshes: THREE.InstancedMesh[], copies: Copy[], center: THREE.Vector3, radius: number}>} */", " this.chunks = [];", " /**", " * The grid of copies: one copy at most in each cell, cells grouped in chunks.", @@ -3926,9 +3930,16 @@ " /** @type {ModelParts} */", " this.model = emptyModelParts;", " this.modelResourceName = '';", - " /** The properties the model was loaded from (see `_getModelKey`). */", + " /**", + " * A simplified model drawn in place of the model for the copies far from the camera.", + " * @type {ModelParts}", + " */", + " this.farModel = emptyModelParts;", + " this.farModelResourceName = '';", + " /** The properties the models were loaded from (see `_getModelKey`). */", " this.modelKey = '';", - " this.loadingModelResourceName = '';", + " /** @type {Set} */", + " this.loadingModelResourceNames = new Set();", " /**", " * Copies removed by events (for example, cut trees), by key.", " * @type {Map}", @@ -4023,7 +4034,7 @@ "", " _getModelKey() {", " const { object } = this;", - " return object._getModel() + '|' + object._getModelUpAxis() + '|' + object._getModelAnchor();", + " return [object._getModel(), object._getFarModel(), object._getModelUpAxis(), object._getModelAnchor()].join('|');", " }", "", " updateFromProperties() {", @@ -4031,50 +4042,62 @@ " if (modelKey !== this.modelKey) {", " this.modelKey = modelKey;", " this.modelResourceName = this.object._getModel();", + " this.farModelResourceName = this.object._getFarModel();", " this._loadModel();", " }", " this.placement.placeAgain();", " }", "", " _disposeModel() {", - " for (const part of this.model.parts) {", + " for (const part of [...this.model.parts, ...this.farModel.parts]) {", " part.geometry.dispose();", " for (const material of Array.isArray(part.material) ? part.material : [part.material]) {", " material.dispose();", " }", " }", - " /** @type {ModelParts} */", " this.model = emptyModelParts;", + " this.farModel = emptyModelParts;", " }", "", " _loadModel() {", " this._disposeChunks(this.chunks);", " this._disposeModel();", - " const resourceName = this.modelResourceName;", - " if (!resourceName) return;", + " this.model = this._loadModelParts(this.modelResourceName);", + " this.farModel = this.model.frame ? this._loadModelParts(this.farModelResourceName, this.model.frame) : emptyModelParts;", + " }", + "", + " /**", + " * @param {string} resourceName", + " * @param {{height: number, normalization: THREE.Matrix4}} [frame]", + " * @returns {ModelParts} Without any part while the resource is loading: the models are loaded again after.", + " */", + " _loadModelParts(resourceName, frame) {", + " if (!resourceName) return emptyModelParts;", " const game = this.object.getRuntimeScene().getGame();", " const modelManager = game.getModel3DManager();", " const gltf = modelManager.getModel(resourceName);", " if (gltf === modelManager._invalidModel) {", " // Not loaded yet, for example a model just chosen in the editor.", - " if (this.loadingModelResourceName === resourceName) return;", - " this.loadingModelResourceName = resourceName;", + " if (this.loadingModelResourceNames.has(resourceName)) return emptyModelParts;", + " this.loadingModelResourceNames.add(resourceName);", " game.getResourceLoader()", " .loadResource(resourceName)", " .then(() => {", - " if (this.isDisposed || this.modelResourceName !== resourceName) return;", - " this.loadingModelResourceName = '';", + " const isUsed = this.modelResourceName === resourceName || this.farModelResourceName === resourceName;", + " if (this.isDisposed || !isUsed) return;", + " this.loadingModelResourceNames.delete(resourceName);", " if (modelManager.getModel(resourceName) !== modelManager._invalidModel) {", " this._loadModel();", " this.placement.placeAgain();", " }", " })", " .catch(() => {});", - " return;", + " return emptyModelParts;", " }", - " this.model = createModelParts(gltf.scene, this.uniforms, {", + " return createModelParts(gltf.scene, this.uniforms, {", " isStandingOnZ: this.object._getModelUpAxis() === 'Z',", " isAnchoredAtOrigin: this.object._getModelAnchor() === 'ModelOrigin',", + " frame,", " });", " }", "", @@ -4085,7 +4108,7 @@ " object._getDensity(), object._getSize(), object._getScaleFactor(), object._getMinScale(), object._getMaxScale(),", " object._getRandomRotation(), object._getRandomTint(), object._getGroundLayer(), object._getMaxSlope(),", " object._getMinGroundZ(), object._getMaxGroundZ(), object._getSeed(), object._getDrawDistance(),", - " object._getCastShadow(), object._getReceiveShadow(), this.model.parts.length,", + " object._getCastShadow(), object._getReceiveShadow(), this.model.parts.length, this.farModel.parts.length,", " ].join('|');", " }", "", @@ -4163,7 +4186,7 @@ "", " _disposeChunks(chunks) {", " for (const chunk of chunks) {", - " for (const mesh of chunk.meshes) {", + " for (const mesh of [...chunk.meshes, ...chunk.farMeshes]) {", " mesh.removeFromParent();", " // Geometries and materials are the ones of the model.", " mesh.dispose();", @@ -4277,9 +4300,9 @@ " const instanceColor = colors ? new THREE.InstancedBufferAttribute(colors, 3) : null;", " const castShadow = object._getCastShadow();", " const receiveShadow = object._getReceiveShadow();", - " const meshes = this.model.parts.map((part) => {", + " const createMeshes = (model, castShadow) => model.parts.map((part) => {", " const mesh = new THREE.InstancedMesh(part.geometry, part.material, 0);", - " // All the parts of the model share the positions of the copies.", + " // All the parts of the models share the positions of the copies.", " mesh.instanceMatrix = instanceMatrix;", " mesh.instanceColor = instanceColor;", " mesh.count = copies.length;", @@ -4291,12 +4314,16 @@ " this.group.add(mesh);", " return mesh;", " });", + " const meshes = createMeshes(this.model, castShadow);", + " // Shown in place of the model when the chunk is far from the camera (see `_hideFarChunks`), without shadows.", + " const farMeshes = createMeshes(this.farModel, false);", + " for (const mesh of farMeshes) mesh.visible = false;", " const center = new THREE.Vector3(", " ((min.x + max.x) / 2 - object.getX()) / scaleX,", " ((min.y + max.y) / 2 - object.getY()) / scaleY,", " ((min.z + max.z) / 2 - object.getZ()) / scaleZ", " );", - " const chunk = { firstCellI, firstCellJ, meshes, copies, center, radius: min.distanceTo(max) / 2 };", + " const chunk = { firstCellI, firstCellJ, meshes, farMeshes, copies, center, radius: min.distanceTo(max) / 2 };", " // Used by the scene editor to select the object when a copy is clicked.", " meshes[0].raycast = (raycaster, intersects) => this._raycastChunk(chunk, raycaster, intersects);", " this.chunks.push(chunk);", @@ -4354,6 +4381,7 @@ " const worldScale = getWorldScale(this.object);", " const drawDistance = Math.max(this.object._getDrawDistance(), 1) / worldScale;", " this.uniforms.scatterDrawDistance.value = drawDistance;", + " const farModelDistance = this.object._getFarModelDistance() / worldScale;", " this._cameraPosition.setFromMatrixPosition(camera.matrixWorld);", " for (const chunk of this.chunks) {", " const distance = this._chunkPosition", @@ -4361,7 +4389,9 @@ " .applyMatrix4(this.group.matrixWorld)", " .distanceTo(this._cameraPosition);", " const isVisible = distance - chunk.radius / worldScale < drawDistance;", - " for (const mesh of chunk.meshes) mesh.visible = isVisible;", + " const isFar = farModelDistance > 0 && chunk.farMeshes.length > 0 && distance > farModelDistance;", + " for (const mesh of chunk.meshes) mesh.visible = isVisible && !isFar;", + " for (const mesh of chunk.farMeshes) mesh.visible = isVisible && isFar;", " }", " }", "", @@ -8182,6 +8212,18 @@ "choices": [], "name": "Model" }, + { + "value": "", + "type": "Resource", + "label": "Simplified 3D model for far copies", + "description": "Optional: a lighter version of the model, made at the same size, drawn in its place far from the camera (without shadows).", + "group": "Model", + "extraInformation": [ + "model3D" + ], + "choices": [], + "name": "FarModel" + }, { "value": "Y", "type": "Choice", @@ -8385,6 +8427,15 @@ "group": "Rendering", "name": "DrawDistance" }, + { + "value": "4000", + "type": "Number", + "unit": "Pixel", + "label": "Distance of the simplified model", + "description": "The simplified model is drawn for the copies further than this distance from the camera.", + "group": "Rendering", + "name": "FarModelDistance" + }, { "value": "true", "type": "Boolean", diff --git a/scripts/lib/ExtensionsValidatorExceptions.js b/scripts/lib/ExtensionsValidatorExceptions.js index 489407e92..3e2d877f8 100644 --- a/scripts/lib/ExtensionsValidatorExceptions.js +++ b/scripts/lib/ExtensionsValidatorExceptions.js @@ -620,6 +620,12 @@ const extensionsAllowedProperties = { runtimeSceneAllowedProperties: ['_stickerExtension'], javaScriptObjectAllowedProperties: [], }, + StaticBatch3D: { + gdjsAllowedProperties: ['__staticBatch3DExtension'], + gdjsEvtToolsAllowedProperties: [], + runtimeSceneAllowedProperties: [], + javaScriptObjectAllowedProperties: [], + }, Terrain3D: { gdjsAllowedProperties: [ '__terrain3DExtension',