Hand tracking animation issue
Hi!
I’m having a problem with the hand tracking template, I just want to add a tween transition to the tracked image when it appears on the screen, but when the hand appears from outside the frame it appears with opacity 1 first and then plays the tween animation. The same if the hand leaves the frame and comes in again. Can you help me with this?
Here is the project so you can look at it and a video explaining the problem.
Thank you in advance!
Hi Jimena,
Thank you for including the project. This is really helpful!
First of all, let's change the default alpha value for the image in Hand Tracking Controller to 0.0. Thus it will be set to 0.0 before the first HandFound event.
Next, we need to set alpha back to 0.0 on every HandFound and HandLost event, since tween will keep running even when there is no hand in the frame. Here is edited version of TweenController script.
Let me know if you have any question!
Best,
Olesia