Square Raycast / Selection box

Hi,
I’m trying to make a selection box for my in game editor. I would like it to work like the selection box tool in the unity editor. I know how to draw the box on the screen. What I cant work out, is what would be the best way to get an array of gameobjects that are inside the box.
Any ideas?

Just found this: Selecting objects inside selection box - Questions & Answers - Unity Discussions
I guess the trick is to ask the objects if they are in the box. Rather than asking the box which objects are in it :slight_smile:

thnxs for the link

btw there is a Unity Answers to ask questions