- Home /
Strange problem with code execution using ARCore
Hi,
I'm building an ARCore app which features a world space menu, where tapping the buttons will play various videos in world space and also animate the menu.
My problem is that when tapping the buttons, it seems that not all the code in the OnClick functions is running. Some parts of the code seem to run, as the videos play, but others don't seem to, such as menu animations or material swaps, playing sound effects etc.
I receive no errors or warnings in the log that any of the code is faulty, I've used various Debug.Log messages to confirm that all code in the function is being executed. It simply just doesn't seem to happen in the scene.
I've also tested the code in non-ARCore scenes and it all works flawlessly, it's only when I build out to the phone or use Instant Preview. The code also runs flawlessly on ARKit.
I'm using Unity 2017.3.1f1 on PC, ARCore SDK 1.1.0. I'm also using ChromaKey Kit and DOTween.
Hi,
I have the same problem on Android. DOTween works fine with "normal" environment. Via ARCore, it does nothing without throwing any error…
// Does not work with ARCore
rotor.transform.DORotate(new Vector3(0, 0, 90), duration, Rotate$$anonymous$$ode.LocalAxisAdd);
// Works in any case
rotor.transform.Rotate(new Vector3(0, 0, 90));
Any help is welcome!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
ARCore for Unity save camera image 1 Answer
Open Android App by clicking on Notification 0 Answers
Unable to complete SSL connection 0 Answers