- Home /
What is the overall best and most efficient way to manage multiple colliders?
I am talking about making each collider distinguishable and being able to control when they trigger their code.
The only two approached I know of are:
a) give each collider and their cohesive script(s) their own GameObject and if grouping them together is desired, make a parent GameObject with no collider so that they can transform together without the colliders and scripts interfering with each other
b) give each collider component their own identifier and only run the code when the identifier matches
Are there better ways of doing this?
I think this question is a bit vague. I wouldn't know how to start answering it. You might get more joy if you explained the exact problem you're having.
Your answer

Follow this Question
Related Questions
Problems with the Trigger Collider (randomly fictional) 1 Answer
Having problems with playing a sound (C#) 2 Answers
Two colliders on GameObject with only one acting as trigger 2 Answers
Destroying objects within collision 1 Answer
OnTriggerEnter and Exit triggering simultaneously constantly 3 Answers