Add an interactive tap to an Image Marker project
I have a short animation scene that works in Interactive tap project as well as the image marker project but I can't seem to add an interactive tap to the image marker project.
The FBX I import has 75 frames and 0-1 is the idle anim and 1-75 is the animation. i'm also trying to hold the last frame as the final state.
Is this possible?
Hello Xen,
First use the Interactive Tap template to make sure your tap animation is working fine.
Then, if you want your animation to hold at the last frame in interactive tap template. You need to open the "TapAnim" script and delete the line 62 which is
This line means when the animation ends go back and play the Idle animation which we don't need, so we're deleting it.
Now we're ready to export our Interactive Tap object. In order to that, in the Objects panel select the "WorldObjectController [EDIT_ME]" and right click then select the "Export Object".
Now we exported, open the Marker Template and Import your exported object by dragging and dropping it in the Objects panel.
Delete the "Mark The Monster [REMOVE_ME]" and set the "WorldObjectController [EDIT_ME]" object as a child of the image marker.
Make sure to scale and position your object based on the marker.
Then, you need to select the "WorldObjectController [EDIT_ME]" object and change the Camera in the "Touch" component to main camera which is called "Camera".
Finally uncheck the "Use Ground Grid" on "WorldObjectController" component.
Now you push your lens to your device and it should work fine on your phone.
Best,
Amir.
Thanks for the detailed reply. Much appreciated Amir!