Search Unity

How To Restart an AR Video when Target Is Reacquired

Discussion in 'AR' started by eklevynyc, Sep 6, 2019.

  1. eklevynyc

    eklevynyc

    Joined:
    Jul 18, 2019
    Posts:
    3


    eklevynyc

    I am an artist and have developed an AR app in Unity (for Win 10 Pro) to run on Android devices that superimposes a video (Quad) on an Image Target when detected through the Android camera. The problem is that if the target is lost, as when handing the Android device from one to another, the video does not restart, whether or not "loop" is checked or unchecked in the Video Player. I have seen posts that appear to address this with scripts but am particularly interested in whether there is a way in UNITY/Vuforia, ;with loop checked on, to restart the video when the target is lost. If this requires script, I need sample script and information on where to insert it. Ideally, I would like to be able to insert a value (in seconds) to indicate after how long the target is lost to restart the video.