- Home /
How to create a worldspace rectangle(region)
not a screen rect, but a world space 2d region. I want to add gameobjects that are in that region to gameobjects array. Just look at a picture here so that you get the idea
Just look at a picture here so that you get the idea
Is there a buid in function for that?
Answer by MrSpoke · Mar 15, 2014 at 07:29 PM
I don't think there is a function to select objects within another object. What you could do is to insert a trigger collision to it, and then on OnTriggerEnter method you change the obj tag or a boolean in its script to check if it is inside the rect.
Your answer
Follow this Question
Related Questions
How to position UI elements on the Minimap's rectangle relative to the elements target position? 1 Answer
Rect.ymax wrong? 1 Answer
Android UI White Rectangles on Inputbox Select 1 Answer
Distance shader returns strage distance when not at 0,0,0 2 Answers
How do I create a dynamicly spaced and UVed brick wall without having multiple material instances? 0 Answers