S
S
Senture2019-01-21 21:05:21
C++ / C#
Senture, 2019-01-21 21:05:21

Is it possible to get a list of objects in a trigger?

Hello, I have a need to find out how many and what objects are in the trigger.
For example:
There is a cube with a collider as a trigger, and there is a player and 2 bots in it, how to get a list (array) of objects that are in the trigger, without writing crutches, if of course it is possible to do so?
PS Thank you all so much!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Pogrebnyak, 2019-01-21
@Senture

https://docs.unity3d.com/ScriptReference/Physics.O...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question