Hi !!
I'm trying to figure out how VirtualButtons works.
I'm new in Unity3d and i don't have yet a good comprension of the code and the usage of operators...
I've duplicated the teaspot and named teaspot2, now i wanna try to give the changing color beaviour to both my objects...
I found this line of code
// Get handle to the teapot object mTeapot = transform.FindChild("teapot").gameObject;
and without having a Knowledge base of c++ i've tried a lot of combinations and maybe the best i came at is this
// Get handle to the teapot object mTeapot = transform.FindChild("teapot")&&("teapot2").gameObject;
but obviosly is not working...Someone can help me ??
An other thought came in my mind...
If i wanna have in my scene 10 teapots and gave all of them the same changing color beaviuour i've to add them on by one one in the script ?? There is a way to tag them and use something like transorm.tag == "Mytag"??
Thanks in advance,
Adding changing color objects to VirtualButtons...
Yes you can obtain GameObjects by tag - see: http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html & http://docs.unity3d.com/Documentation/ScriptReference/GameObject.html
Adding changing color objects to VirtualButtons...
hello, i have trying to manipulating object with this script, but 3d object is not changing.
i used 3dsmax object, unity and vuforia sdk
thanks.