- Home /
Question by
Jeremy2300 · Jun 09, 2017 at 09:32 PM ·
uispriteatlas
Check if a Sprite is part of an Atlas or not?
I'm trying to determine if a Sprite is part of an Atlas or on it's own. It's to alert people in a custom inspector if they're trying to tile a sprite from an atlas, or not (we don't want to tile from an atlas).
Is there any command I'm missing to determine from the Sprite itself if it's a member of an Atlas or not? Sprite.packed doesn't seem to do it unfortunately, and I can't find any other reference.
Comment
Your answer
Follow this Question
Related Questions
Create 1 NGUI atlas , which has more than 1 PNG's 0 Answers
Best way to change sprite in Image (GUI 4.6) ? 1 Answer
uGUI Mask Content 0 Answers
Setting the correct sprite size from Atlas 1 Answer
Aligning sprite with Canvas 0 Answers