Welcome,
Guest
. Please
login
or
register
.
October 11, 2024, 07:11:57 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UISprite.sprite
« previous
next »
Print
Pages: [
1
]
Author
Topic: UISprite.sprite (Read 1661 times)
zipper
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 14
UISprite.sprite
«
on:
November 15, 2013, 12:27:22 AM »
Hi,
Just wondering if the removal of UISprite.sprite was intentional. I didn't see anything about it in the docs.
I have some code that iterates through albums and
Picture
.
sprite
=
Picture
.
atlas
.
spriteList
[
_index
]
;
// -> used to work
just feels better than
Picture
.
spriteName
=
Picture
.
atlas
.
spriteList
[
_index
]
.
name
;
It's a minor quibble, but i think setting the sprite directly is useful.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UISprite.sprite
«
Reply #1 on:
November 15, 2013, 04:34:15 AM »
Honestly I don't remember when I removed it, but with a direct sprite assignment it was possible to assign sprites from a different atlas -- which is why I am guessing I did that. It's better to have one way of doing something than two.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UISprite.sprite