- Home /
Prefab instantiate
Hello , I am new on unity. The link below contains what i am trying to do.
I prepared a prefab and i can instantiate it on runtime at a v3 point.
But the thing I couldnt do is that, The ball needs to appear at the bottom of the screen. Can anyone help me ?
I cannot watch the video as I am at work. Could you explain your problem a little better please?
Thank you for your response. This is a basketball game. There is a basket. and i want user to throw the ball with touch. but the problem is , When I instantiate at runtime , I would like ball to appear at the bottom of iphone screen.
Did you mean the co$$anonymous$$g of the ball animation? Or the position of the camera? If you can instantiate the ball in anywhere you want, then you can place it on the bottom of the screen, what is the problem here?
Also I am trying to embed vufio sdk. so when vufio fired, object position changes. I always want ball to appear at the bottom of iphone screen.
I have attached a screent from iphone as well.
problem is obect appers at posstion 1 , but i want it to appear as 2.
Answer by dorpeleg · Jul 08, 2013 at 02:57 PM
You need to position the ball next to the camera.
Get the camera position, add a bit forward and a bit down, and that's the location you need to instantiate the ball in.
When the main state yes it is working , but , I am using vufiro sdk. / When an object tracked , position- scale changes
I'm not sure what vufiro sdk is, but you might wanna make it ignore the ball when instantiating (if possible).