Dynamically rendering content via multiple reference image library in AR

Hello Everyone I am a beginner Unity dev and i humbly ask for your assistance,
I am trying to build this app where a user scans a marker (tracked image) and a quad appears on the screen and a video is played on it. The main catch is that I want the video to be sourced from the device, the user is required to pick the video to be played on the quad. The things that I have mentioned until now
is what I have been able to do, but where I am stuck is that now I want multiple markers (tracked images) and if the videos were bundled together with the app then it would have been no issue but I want the videos to be picked locally (for example a folder), I am aware of the names of the videos but how can I pass the path to the video player and then append the name of the video upon the marker being tracked and then play the video.

I have used Native File Picker until for the file picking operations (by yasirkula) and Google AR/XR core and AR foundation

What will be the best approach to reach the results above

P.S. I am still new so please don’t mind if it is a dumb question but I like to learn by doing stuff

Thank you very much!

1 Like

Use NativeGallery by yasirkula instead:

NativeGallery.GetVideoFromGallery(
(path) =>
{

});

I implemented the same experience in AR Masker:

thanks for your reply i will take a look

1 Like