Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: speedyw03 on January 06, 2013, 10:59:24 AM

Title: Instantiating sprite prefab
Post by: speedyw03 on January 06, 2013, 10:59:24 AM
(http://www.downvids.net/video/faceimage/img-176377052.jpg)
I'm making a fps and I'm trying to achive this in the pic above (600+)

How can I instantiate it in the middle of the screen?? When I use nguitools.addchild there's no position parameter!

help me! >:(
Title: Re: Instantiating sprite prefab
Post by: Cripple on January 06, 2013, 12:49:19 PM
The function AddChild returns the created GameObject, change the position of its transform in order to achieve what you want.