Multiple Box Colliders


It’ cool that we can GetComponent using the type of the collider (capsule or box).
What if we had two box colliders, and I needed to call one of them, is there a way to do that?


Hi Waleed,

Use [SerializeField] and assign them manually to each field.

1 Like

Thank Nina, that’s cool

You’re welcome. :slight_smile:

See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms