Hi. I need a way to get all objects inside a collider-trigger.
I tried it with…
void ScanForItems(Collider Item)
{
foreach (Collider Item in this.GetComponent<Collider>())
{
print(Item.gameobject.name);
}
}
I can’t use OnTriggerEnter or -stay or anything that works like a routine/coroutine.
Maybe I can use bounds for something like that?