Welcome,
Guest
. Please
login
or
register
.
October 29, 2025, 03:37:09 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Instantiating sprite prefab
« previous
next »
Print
Pages: [
1
]
Author
Topic: Instantiating sprite prefab (Read 2464 times)
speedyw03
Guest
Instantiating sprite prefab
«
on:
January 06, 2013, 10:59:24 AM »
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!
Logged
Cripple
TNP Alpha
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 117
Re: Instantiating sprite prefab
«
Reply #1 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.
Logged
Graphicstream Dev.
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Instantiating sprite prefab