When trying to Build a game for android, I get this error "BCE0019: 'mesh' is not a member of 'UnityEngine.Component'" 3 times.
& in here
Anybody any idea on how to fix this?
Thanks in advance!!
asked Apr 08 '11 at 01:10 AM
GetComponent returns Component, and indeed mesh is not a member of Component. If you're not using dynamic typing then you have to cast it correctly. If you want less typing, use generics.
answered Apr 08 '11 at 01:34 AM
Again. I'm gonna awnser my own question... I've got to stop asking to quickly :D
here's the working code:
I still don't know how this works, so if someone could clarify on this, would be great..
answered Apr 08 '11 at 01:20 AM