Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Getting a custom script to work instead of UnityARVideo

Discussion in 'AR' started by CatalinMustata, Oct 16, 2017.

  1. CatalinMustata

    CatalinMustata

    Joined:
    Oct 12, 2017
    Posts:
    6
    Hi there,

    I'm trying to roll my own demo, with some modifications to the ARKit plugin. However, I would like to keep the original sources intact, so I've made another script that, for the moment, is a copy of UnityARVideo.cs.

    I've replaced the script on the Main Camera object, but I noticed the old code was still executed. I then proceeded to remove that script component completely from the Main Camera... but it was still executed.

    I assume I'm missing something regarding how everything is tied together, so I'd really appreciate some help. Thanks!
     
  2. CatalinMustata

    CatalinMustata

    Joined:
    Oct 12, 2017
    Posts:
    6
    Wow... Although I was editing one scene... I was building another one. It finally occurred to me when I noticed I was using the occlusion plane material but it rendered the regular planes.