Hello ![]()
I have some problems with the interaction of/between cloned objects…
When I destroy my enemy prefab it instantiates a clone or some clones (Random.Range) of the magicOrb prefab.
I’ve been trying to get these orbs to interact with my character, but somehow I can’t get them to interact
I can’t drag’n’drop my player object in the inspector of my prefab, the orb prefab can’t find my “find object with tag” for some strange reason, and even if I turn the system around and let the script attached to my player character interact with the GameObject magicOrb they simply won’t work ![]()
Is it a common problem/bug with Unity 3?
BTW I have a really strange error every time the debugger pops up:
" classID >= ms_MaxClassID || classID < 0 "
Shows as an error, but it builds and plays just like normal.
Could this have anything to do with it?
Thanks in advance ![]()
GameObject.FindGameObjectsWithTag works just fine in Unity 3, so the problem is likely that the problem is either you are looking for the wrong tag or the tag is not on the "Player" object. What error are you getting?
– anon98805514Would be helpful if you could post your "interact with the orb" script and also, what error you are getting on that script. Im not sure on the classID error, never had that myself.
– timsk