- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
SkyreGames · May 10, 2013 at 08:16 PM ·
collisiongameobjectcolliderstring
How can i check if GO collided with collider starting with name (string)
How can i detect if my GO collided with collider with name starting with PP? I want to detect colisions only from collider PP1, PP2, PP3...
Sorry for my english
Comment
Best Answer
Answer by whydoidoit · May 10, 2013 at 08:16 PM
You can do:
if(collision.collider.name.StartsWith("PP"))
{
}
Your answer
Follow this Question
Related Questions
Check if collider is colliding with anything non specific? 1 Answer
Smooth Camera 2 Answers
OnDestroy collision detect 4 Answers
Collider Error[SOLVED] 2 Answers
Is CompareTag faster than checking directly the GameObject? 1 Answer