Search Unity

Video Crash Set active False

Discussion in 'AR/VR (XR) Discussion' started by greenpyro, Jul 31, 2017.

  1. greenpyro

    greenpyro

    Joined:
    Jun 22, 2017
    Posts:
    4
    Hey would appreciate any help,

    So I have a Plane that has my video on (standard video that is inactive) I click a button makes the panel active and video plays, click it again to set the plane inactive and it closes it repress it starts video again etc... works fine in unity test

    Issue is when I have it in VR and the button is clicked to set inactive again the app crashes, now is there a better way to make the video inactive instead of just making the plane inactive for should I be pausing the video before I make the plane inactive and if so how do I reference the gameobject.videoplayer?

    Kind Regards