Welcome,
Guest
. Please
login
or
register
.
May 02, 2026, 01:24:06 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Dinamic Sprites
« previous
next »
Print
Pages: [
1
]
Author
Topic: Dinamic Sprites (Read 3425 times)
lord_sarcasmo
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Dinamic Sprites
«
on:
July 09, 2012, 06:16:06 PM »
Is there anyway I can change by code the sprite that is being showed, for example, in a UISprite?
I'm making a level selection screen and the background should change when I click different buttons.
Thanks
Logged
simon129
Newbie
Thank You
-Given: 0
-Receive: 1
Posts: 20
Re: Dinamic Sprites
«
Reply #1 on:
July 09, 2012, 09:18:06 PM »
If they were in the same atlas, you can change the sprite through "spriteName", and run "MakePixelPerfect()"
Or, u can use UITexture and just change their "material"
Logged
lord_sarcasmo
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 2
Re: Dinamic Sprites
«
Reply #2 on:
July 15, 2012, 09:12:56 PM »
Thanx, the "spriteName" option worked perfectly.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Dinamic Sprites