Hello Guest

Author Topic: Static Sprite Batcher with multiple materials?  (Read 4629 times)

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Static Sprite Batcher with multiple materials?
« on: April 26, 2012, 04:43:14 pm »
I've been using the feature where we can add additional materials to the same sprite sheet. I am noticing for some reason when I create a StaticSpriteBatcher, then add some sprites to it that have a certain material, if I commit the Batcher, the material changes to the default material on that sprite sheet. I can switch out the material manually and it works, but it keeps automatically switching it out whenever I commit. Example of a scenario:

-Have a collection with a solid material and a transparent material
-Create an individual sprite, select the texture and the material auto-selects to the proper one
-Put them in a StaticSprite Batcher, commit, then the material switches over to solid for the whole thing

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Static Sprite Batcher with multiple materials?
« Reply #1 on: April 26, 2012, 06:08:49 pm »
This is expected behavior for now, I'll see if I can do something before releasing the next 1.7 beta (hopefully by tonight).