diff --git a/extensions/community/WithThreeJS.json b/extensions/community/WithThreeJS.json
index 9432fcb0..e57c50db 100644
--- a/extensions/community/WithThreeJS.json
+++ b/extensions/community/WithThreeJS.json
@@ -8,7 +8,7 @@
"name": "WithThreeJS",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/rotate-3d.svg",
"shortDescription": "Create a simple 3D scene.",
- "version": "1.0.1",
+ "version": "1.0.2",
"description": [
"Extension for GDevelop to create simple 3D scenes. ",
"This extension is intended for easy and simple 3D rendering. It does not currently aim for realistic 3D rendering. ",
@@ -1233,7 +1233,7 @@
"textG": 0,
"textR": 0
},
- "comment": "Commented out to always use built-in 3D. (GDevelop v5.2.173 and PixiJS v7.3.0 or later)"
+ "comment": "This is the magic comment out that always enables built-in 3D. (GDevelop v5.2.173 - v5.2.176 (?) and PixiJS v7.3.0 or later)"
},
{
"disabled": true,
@@ -1405,9 +1405,23 @@
"} else {",
" // v5.2.173 対応した v1.0.1 以降は使用されないはず",
" console.log(\"[WithThreeJS] Built-in 3D is disabled. (LEGACY MODE)\");",
- " // GDの背景を黒くした上で透明にする",
- " runtimeScene.setBackgroundColor(0,0,0);",
- " runtimeScene.getRenderer().getPIXIRenderer().backgroundAlpha = 0;// For PixiJS 6",
+ " // GDの背景を黒くした上で透明にする(v1.0.2 で廃止)",
+ " // runtimeScene.setBackgroundColor(0,0,0);",
+ " // runtimeScene.getRenderer().getPIXIRenderer().backgroundAlpha = 0;// For PixiJS 6",
+ " // 警告表示",
+ " let AlertElement = document.createElement('div');",
+ " AlertElement.innerHTML = `Warning from WithThreeJS
",
+ " Please add an \"Enable WithThreeJS\" object to a scene.
",
+ " For more information, please click here.`;",
+ " AlertElement.style.position = \"absolute\";",
+ " AlertElement.style.zIndex = 999;",
+ " AlertElement.style.top = 0;",
+ " AlertElement.style.left = 0;",
+ " AlertElement.style.backgroundColor = \"red\";",
+ " AlertElement.style.color = \"white\";",
+ " AlertElement.style.padding = \"0.5em\";",
+ " document.body.appendChild(AlertElement);",
+ " return;",
"}",
"//",
"const ProjectionScale = eventsFunctionContext.getArgument(\"ProjectionScale\") || 1;",
@@ -12725,6 +12739,7 @@
"defaultName": "My3DBox",
"description": "This 3D Box can have different textures on 6 faces.\n⚠️ This object is high load.",
"fullName": "3D Box (Experimental)",
+ "is3D": true,
"name": "Box3D",
"eventsFunctions": [
{
@@ -13422,7 +13437,6 @@
"assetStoreId": "",
"height": 32,
"name": "Top",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13434,7 +13448,6 @@
"assetStoreId": "",
"height": 32,
"name": "Bottom",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13446,7 +13459,6 @@
"assetStoreId": "",
"height": 32,
"name": "Front",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13458,7 +13470,6 @@
"assetStoreId": "",
"height": 32,
"name": "Back",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13470,7 +13481,6 @@
"assetStoreId": "",
"height": 32,
"name": "Left",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13482,7 +13492,6 @@
"assetStoreId": "",
"height": 32,
"name": "Right",
- "tags": "",
"texture": "",
"type": "TiledSpriteObject::TiledSprite",
"width": 32,
@@ -13490,7 +13499,43 @@
"effects": [],
"behaviors": []
}
- ]
+ ],
+ "objectsFolderStructure": {
+ "folderName": "__ROOT",
+ "children": [
+ {
+ "objectName": "Top"
+ },
+ {
+ "objectName": "Bottom"
+ },
+ {
+ "objectName": "Front"
+ },
+ {
+ "objectName": "Back"
+ },
+ {
+ "objectName": "Left"
+ },
+ {
+ "objectName": "Right"
+ }
+ ]
+ }
+ },
+ {
+ "defaultName": "Enable_WithThreeJS",
+ "description": "Adding this object to your project will enable WithThreeJS in all scenes.\nThere is no need to place this in the scene.",
+ "fullName": "Enable WithThreeJS",
+ "is3D": true,
+ "name": "EnableWithThreeJS",
+ "eventsFunctions": [],
+ "propertyDescriptors": [],
+ "objects": [],
+ "objectsFolderStructure": {
+ "folderName": "__ROOT"
+ }
}
]
}
\ No newline at end of file