- Home /
Prefabs and collisions
Hello,
Here is my situation. When i collide with a power up, it will fire an 'egg' to an object to remove it. The egg is a prefab and so is the object. I have given the egg a tag so when it collides with the object, the object will realise that the egg has just collided with it and needs to delete itself.
Yet it does not want to work. It is making me believe that there is something very odd with working with prefabs. Yet i would like them. I have done this type of code in javascript before where i find a gameobject with a specific tag, so i know its not the codes problem. Was just wondering if there is a specifc thing i should know when working with prefabs and tags.
"Was just wondering if there is a specifc thing i should know when working with prefabs and tags." Nope, it must be a small mistake you made in the script. If you post it I'm sure we can help you out.
Answer by MDennis · May 24, 2011 at 03:15 PM
I am completely annoyed at myself, guess who didnt attach a bloody collider on the object.......
Your answer

Follow this Question
Related Questions
Unity 2017 Not finding prefab tag 1 Answer
Deleting instantiated prefabs clones? 2 Answers
Collision between 2 prefabs. 1 Answer
Destroy multiple game objects when player press a button 2 Answers