Skip to content

Commit

Permalink
update sample (package.json, scene files)
Browse files Browse the repository at this point in the history
  • Loading branch information
kipash committed Apr 4, 2024
1 parent 9a6caa8 commit 255329c
Show file tree
Hide file tree
Showing 10 changed files with 4,006 additions and 1,110 deletions.
Binary file modified assets/ReactSample.glb
Binary file not shown.
Binary file modified include/ReactSample.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,472 changes: 1,472 additions & 0 deletions include/needle/arial-msdf.json

Large diffs are not rendered by default.

Binary file added include/needle/arial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added include/needle/poweredbyneedle.webp
Binary file not shown.
3,617 changes: 2,519 additions & 1,098 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"gltf:transform": "npm run transform --prefix node_modules/@needle-tools/gltf-build-pipeline"
},
"dependencies": {
"@needle-tools/engine": "^3.20.2",
"three": "npm:@needle-tools/three@^0.154.3",
"@needle-tools/engine": "^3.36.2-beta",
"three": "npm:@needle-tools/three@^0.162.2",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@needle-tools/helper": "^1.4.0",
"@types/three": "0.154.0",
"@needle-tools/helper": "^1.8.0",
"@types/three": "0.162.0",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"typescript": "^5.0.4",
"vite": "<= 4.3.9",
Expand Down
6 changes: 3 additions & 3 deletions src/generated/gen.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import "./register_types.ts"
globalThis["needle:dependencies:ready"] = import("./register_types.ts")

export const needle_exported_files = new Array();
globalThis["needle:codegen_files"] = needle_exported_files;
needle_exported_files.push("assets/ReactSample.glb?v=1694716553828");
needle_exported_files.push("assets/ReactSample.glb?v=1712230995150");
document.addEventListener("DOMContentLoaded", () =>
{
const needleEngine = document.querySelector("needle-engine");
if(needleEngine && needleEngine.getAttribute("src") === null)
{
needleEngine.setAttribute("hash", "1694716553828");
needleEngine.setAttribute("hash", "1712230995150");
needleEngine.setAttribute("src", JSON.stringify(needle_exported_files));
}
});
10 changes: 6 additions & 4 deletions src/generated/meta.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"needleEditor": null,
"meta": {
"title": "Needle Engine",
"description": "🌵 Made with Needle Engine",
"image": ""
"title": "React Sample",
"description": "Integrate Needle Engine into a react component",
"image": "include/ReactSample.jpg"
},
"absolutePath": "https://localhost:3000",
"sceneName": "React Sample",
"deployOnly": false,
"generator": "Unity 2021.3.28f1, Needle Engine Integration @3.16.2-pre",
"generator": "Unity 2021.3.33f1, Needle Engine Integration @3.36.2-pre",
"gzip": true,
"allowHotReload": false,
"developmentBuild": false,
"facebookInstantGames": null,
"useRapier": true,
"license": "pro"
}
3 changes: 2 additions & 1 deletion workspace.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"path": "."
},
{
"path": "./node_modules/@needle-tools/engine"
"path": "./node_modules/@needle-tools/engine",
"name": "🌵 Needle Engine"
}
],
"settings": {
Expand Down

0 comments on commit 255329c

Please sign in to comment.