Author Topic: spriteName in multiple atlases  (Read 680 times)

spire8989

  • Guest
spriteName in multiple atlases
« on: June 29, 2012, 02:01:41 PM »
Are there any native functions for searching through multiple atlases for a desired sprite, or should I write something myself? (I'm filling up 3 4k x 4k atlases currently)

I understand I'll probably need to put it in the resources folder and use resources.load()
« Last Edit: June 29, 2012, 02:04:10 PM by spire8989 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: spriteName in multiple atlases
« Reply #1 on: June 29, 2012, 02:09:05 PM »
You'll have to write it yourself.

spire8989

  • Guest
Re: spriteName in multiple atlases
« Reply #2 on: June 29, 2012, 02:11:52 PM »
Do you think there will be any problems using Resources.Load() to switch between atlases?

Also, how would I search within an atlas? GetSprite(), GetListOfSprites(), etc?

Thanks :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: spriteName in multiple atlases
« Reply #3 on: June 29, 2012, 02:13:48 PM »
UIAtlas.spriteList