Just about to test it now. Thanks for the extra suggestions Back with feedback asapā¦
by user 908977119781060648
Just about to test it now. Thanks for the extra suggestions Back with feedback asapā¦
by user 908977119781060648
Hmmmmmā¦ no luck
Iāve tried:-
import {
Behaviour,
PlayableDirector,
serializable,
WebXR,
} from "@needle-tools/engine";
import { WebXREvent } from "@needle-tools/engine/engine-components/WebXR";
export class Play extends Behaviour {
@serializable(PlayableDirector)
timeline?: PlayableDirector;
awake() {
window.addEventListener("pointerdown", () => {
if (this.timeline) {
this.timeline.playOnAwake = true;
this.timeline.play();
}
});
}
start() {
WebXR.addEventListener(WebXREvent.XRStarted, () => this.timeline?.play());
}
}
ā¦ and itās still not happening.
Even if I start the timeline via interaction so itās actually running when I hit the AR button, the timeline has stopped when the AR version is displayed. As said, itās really not a deal-breakerā¦ but it would be cool to get to the bottom of it if possible
by user 908977119781060648
Mmmh strange. I cant think of another reason for it to not play right now. Will try to test it as soon as i get a chance
Many thanksā¦ and Iāll try and test on another device asap in case thatās the problem
by user 908977119781060648