I’ll try to fix it first to save confusion
by user 103054507105067008
I’ll try to fix it first to save confusion
by user 103054507105067008
Yep
by user 103054507105067008
So I searched all scripts for it and all the engine scripts seemed to implement it by putting in
ok because this made it sound like it’s code from needle engine
This doesn’t work for me?
gen.js:13 ReferenceError: webXR is not defined
by user 103054507105067008
const xr = GameObject.findObjectOfType(WebXR)!;
const startAR = xr.getButtonsContainer().createARButton();
The method is on the instance, it’s not static as it was before👍
I tried to hint that by declaring it above, sorry if it wasn’t clear.
WebXR is a normal component, so you can reference it or find it.
Updated the old message so it is more clear.
Thanks that works
by user 103054507105067008