Log in or register to post comments

Stopping an image sequence when AR Camera loses a target

March 31, 2018 - 4:28pm #1

Hi. 

I was looking around for a solution to add PNG sequences on some objects and I found an asset in the Unity Store:

https://assetstore.unity.com/packages/tools/video/playback-image-sequence-20191

 

However, I noticed a comment from a user which said:

"did exactly what I needed it to! I had to add an extra script to help it stop when the AR camera lost the target otherwise the device would get really hot, but it worked really well!"

 

How would one do in order to create something like this? Is a script like this hard to create? I have little to no programming skills but I would like to implement something similar to prevent the app from playing the sequences in the background. Can anyone help or point me towards the right direction?

 

Thank you

Stopping an image sequence when AR Camera loses a target

April 2, 2018 - 11:42am #2

Hello SerafirmMendes,

This person likely added their own ITrackableEventHandler to perform this action. By default we provide the DefaultTrackableEventHandler on our targets which will show and hide renderers of the augmentation based on the tracking state. You'd want to create a class similar to this one that will stop your PNG sequence when the target is lost.

Thanks,

Vuforia Support

Log in or register to post comments