Skip to content

Commit adf6d7e

Browse files
authored
Disable non-functional XR demos in web exports (#1130)
These demos could work if they are redesigned to account for WebXR's limitations when running on the web platform.
1 parent c492e5f commit adf6d7e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/dist/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Unavailable demos</h2>
3232
<li><code>mono/*</code>: Not available yet (requires Mono-enabled HTML5 build).</li>
3333
<li><code>networking/*</code>: Doesn't make sense to be hosted on a static host, as the server must be hosted on the same origin due to the browser's same-origin policy.</li>
3434
<li><code>plugins/*</code>: Only effective within the editor.</li>
35+
<li><code>xr/*</code>: Not functional on the web platform, as these demos are not designed for WebXR.</li>
3536
</ul>
3637
</body>
3738
</html>

.github/dist/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
}
9999

100100
.unsupported-demos li {
101-
margin-bottom: 2rem;
101+
margin-bottom: 1.5rem;
102102
}
103103
</style>
104104
</head>

.github/workflows/export_web.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
mobile/sensors/ \
6060
mono/ \
6161
networking/ \
62-
plugins/
62+
plugins/ \
63+
xr/
6364
6465
for panorama in 3d/material_testers/backgrounds/*.hdr; do
6566
# Decrease the resolution to get below the 100 MB PCK size limit.

0 commit comments

Comments
 (0)