Hello all, I have created a scene in 3ds max that contains animation. I have baked this onto the model and imported into Unity as a FBX. I have successfully deployed the scene to my HoloLens however the animation auto plays. What I would really like to do is to allow the user to use the gesture commands to initiate the animation. Please can somebody let me know what needs to be done? I am a complete coding noob so please bare with me.
Here is the documentation on the code for the gesture recognizer :
https://docs.unity3d.com/ScriptReference/VR.WSA.Input.GestureRecognizer.html
This is were I would start:
-Turn off autoplay on the model animation
-Create a new C# script for the gesture recognizer code
-Create a new gesture recognizer in the start function of the script
-Add the event for Tapped and the delegate for the event
-In the delegate event for OnTapped get the model and start the animation
1 Like
Many thanks for the response. I can’t where to turn off autoplay on the animation, I have an option for ‘loop’ but that is about it.
I think it is play on awake