How can i make image tracking scene start in the AR view

Instead of using the UI to go to AR view is there a way to start my scene with the AR view already active
For further context, im using the image tracking sample in unity

Original Post on Discord

by user 538309299538231296

You need some user interaction to start an immersive session.
Instead of using the UI we provide you can implement it yourself too of course (or just trigger the β€œclick” event on the Start AR button from e.g. clicking on some other element, that could be a 3D object as well or just another HTML element)