Improve AR menu with multi-dish support, 3D ingredients, and shared sky HDRI.
Fix AR export/visibility per dish, load catalog GLBs at runtime, and replace per-dish HDR with one overcast sky environment for the whole menu. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,10 +10,14 @@ onStart((context) => {
|
||||
let webxr = context.scene.getComponentInChildren(WebXR);
|
||||
if (!webxr) {
|
||||
webxr = context.scene.addComponent(WebXR);
|
||||
webxr.createARButton = true;
|
||||
webxr.createVRButton = true;
|
||||
}
|
||||
|
||||
// Unity-exported WebXR often serializes these off; only the `if (!webxr)` branch used to set them,
|
||||
// which hid Enter AR / Enter VR / Send to Quest in NeedleMenu for exported scenes.
|
||||
webxr.createARButton = true;
|
||||
webxr.createVRButton = true;
|
||||
webxr.createSendToQuestButton = true;
|
||||
|
||||
webxr.autoPlace = true;
|
||||
webxr.autoCenter = true;
|
||||
webxr.arScale = 1;
|
||||
|
||||
Reference in New Issue
Block a user