Hi to all!
My apologies if this has been answered before
I'm currently working on a scene whereby: the user scans an target image, the virtual buttons appear together with the object where the user will be given an option to go to the next scene. However, upon coding for my virtual button, I am met with an error stating: error CS1061 'GameObject' does not contain a definition for 'getComponent' and no accessible extension method 'getComponent' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)
P.S: I'm relatively new to C# Script and would be great to explain the error to me in layman terms and if possible to type out the correct code for me.
Thank you in advance!
![alt text][1]
[1]: /storage/temp/174018-help.png
↧