S
S
slupoke2020-03-01 23:04:40
C++ / C#
slupoke, 2020-03-01 23:04:40

How to get multiple colliders on an object?

There are two box colliders on the object.

It would be logical to do so, but as it turned out - wrong.
BoxCollider[] bx = GetComponent<BoxCollider[]>();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-03-01
@slupoke

https://docs.unity3d.com/ScriptReference/Component... We
completely forgot how to google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question