- Home /
Make objects easier to select
I have a 2d game setup inside of unity, its for the iPhone and for the most part it works well.
I have noticed that when I try to touch the object it can at times be a little hard to select, I think this is due to the collider size , the problem is if I make the collider bigger it will effect my game play as objects will also be able to collide with it which will look strange as collisions will take place even though the player wont actually see the two objects touch.
Would you guys happen to have any other ideas on how to make the object easier to select?
Answer by Eric5h5 · Dec 09, 2010 at 01:56 AM
For a 2D game it should be pretty easy to use Rect values for objects' screen positions, where you can check them with Rect.Contains(touchPosition).
Thanks for the tip , the problem is my objects are constanly moving and being instantiated so I dont wont to mess to much with the colliders, would there be any other ways around this?
Your answer
Follow this Question
Related Questions
How to 'flick' objects in a 2d game 1 Answer
How to support Retina display 1 Answer
Can I stop a lerp completely when it gets to 20% of its original value? 3 Answers
A node in a childnode? 1 Answer