Question About Colliders

I was wondering if i use on the Player more then one BoxCollider2D how can i get a reference to them?

Hi Shaktillar,

I don’t know what exactly you mean but you could create multiple variables of type BoxCollider2D (with the [SerializeField] attribute) and drag and drop the BoxCollider2D components onto the exposed fields in the Inspector.

Is this what you were looking for? :slight_smile:


See also:

Of course im sooo newbie. Thank you

No worries. You’ll become an expert by making all the newbie stuff. This way, you’ll learn how to accomplish things in a complex game engine like Unity. It’s not like we were born with the knowledge. :wink:

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

Privacy & Terms