0
\$\begingroup\$

I assigned two colliders to one GameObject. Both are different sizes. I am doing operations with Trigger messages.

Diagram showing colliders that should interact

I want this Trigger function to work for only colliders 1 and 3, but not collider 2.

\$\endgroup\$
2

1 Answer 1

0
\$\begingroup\$

I gave the number 1 collider to the child gameobject and set it with the collison layer and I solved my problem.

\$\endgroup\$
1
  • \$\begingroup\$ Can you explain your solution in more detail, so that it can help future readers who do not have as clear an understanding of the system as you do now? \$\endgroup\$
    – DMGregory
    Jan 19, 2022 at 23:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .