Skip to content

Commit

Permalink
add uikit demo to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Feb 1, 2025
1 parent b44c5cf commit 42b3b4e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
mkdir -p public/examples/secondary-input-sources
mkdir -p public/examples/editor
mkdir -p public/examples/hit-testing
mkdir -p public/examples/uikit
cp -r ./examples/minecraft/dist/* ./public/examples/minecraft
cp -r ./examples/pingpong/dist/* ./public/examples/pingpong
cp -r ./examples/rag-doll/dist/* ./public/examples/rag-doll
Expand All @@ -61,6 +62,7 @@ jobs:
cp -r ./examples/secondary-input-sources/dist/* ./public/examples/secondary-input-sources
cp -r ./examples/editor/dist/* ./public/examples/editor
cp -r ./examples/hit-testing/dist/* ./public/examples/hit-testing
cp -r ./examples/uikit/dist/* ./public/examples/uikit
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions docs/getting-started/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ nav: 3
[![Screenshot from the hit testing demo](./hit-testing.gif)](https://pmndrs.github.io/xr/examples/hit-testing/)
by [Sung Powley](https://bsky.app/profile/sung-powley.bsky.social)
</li>
<li>
[![Screenshot from the uikit + handle demo](./uikit.gif)](https://pmndrs.github.io/xr/examples/uikit/)
</li>
</Grid>
Binary file added docs/getting-started/uikit.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion examples/uikit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@react-three/xr": "workspace:~"
},
"scripts": {
"dev": "vite --host"
"dev": "vite --host",
"build": "vite build"
}
}
1 change: 1 addition & 0 deletions examples/uikit/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import basicSsl from '@vitejs/plugin-basic-ssl'

// https://vitejs.dev/config/
export default defineConfig({
base: '/xr/examples/uikit/',
plugins: [react(), basicSsl()],
resolve: {
alias: [
Expand Down

0 comments on commit 42b3b4e

Please sign in to comment.