Advanced topic: Events handling




  • Avatar
    Francisco Neves

    This code gives errors I cant use it!

  • Avatar
    Alvin Xu

    Hey Francisco,

    Can you copy and paste the error that you're seeing so we can better debug it?

    Did you make sure to reference the KatanaCamera GameObject inside the Unity Editor Scene? We found this is a common step that people forget to do.

    Also, we took some other developers' advice and fleshed out the code so you can see where to put some controller logic. In this example script you can put logic inside the case statements under // do something here.

    Some common things that people do include showing the tracking state on screen, and hiding/showing a referenced 3D model in the scene depending on tracking state.





Please sign in to leave a comment.