Search Unity

How to create a gameobject at the position of touch?

Discussion in 'Android' started by Milan_cool, Mar 1, 2011.

  1. Milan_cool

    Milan_cool

    Joined:
    Jan 24, 2011
    Posts:
    22
    I want to create a gameobject at the position where i touch. I am able to get the position of touch, but cannot create the object there. I am able to create it at a default location but not at the touch position. Can anyone help me out?
     
  2. Curious

    Curious

    Joined:
    Nov 19, 2009
    Posts:
    334
    Don't create them in real-time, how many fingers will you app support? 5? Create 5 objects (or any number) in a pool of objects (pooling technique and out of the visible screen/scene) and reposition them at the fingerid's position

    Good luck