"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Changing the color of teapot during rotation in Virtual button.

Hi, In virtual button example I want to rotate the teapot at button pressed. Also during rotation I want to change the color as well. Any suggestion on how to do this animation would be appreciated. I m not able to find out in VirtualButtonEventHandler how m_TeapotMaterials array is populated. Please Help.

Hi amrutvit This is more of a Unity question, however I think I can help. If you want the teapot to rotate then add the following method to the VirtualButtonEventHandler class in VirtualButtonEventHandler.cs void Update() { mTeapot.transform.Rotate(Vector3.forward * Time.deltaTime * 10); }