Welcome,
Guest
. Please
login
or
register
.
March 22, 2025, 02:37:48 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Programmatically Changing a Sliced Sprite
« previous
next »
Print
Pages: [
1
]
Author
Topic: Programmatically Changing a Sliced Sprite (Read 1742 times)
MrClark83
Guest
Programmatically Changing a Sliced Sprite
«
on:
August 02, 2012, 01:25:49 AM »
Ive looked through the UISlicedSprite.cs and unable to locate what would work. Is there a way to change a sliced sprite from the atlas via script during runtime?
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: Programmatically Changing a Sliced Sprite
«
Reply #1 on:
August 02, 2012, 02:21:46 AM »
If you want to change from one sprite to another, change the .spriteName. All the sprites are referenced by name.
Logged
MrClark83
Guest
Re: Programmatically Changing a Sliced Sprite
«
Reply #2 on:
August 02, 2012, 02:33:46 AM »
Thank you kindly. =D
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Programmatically Changing a Sliced Sprite