Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dav793

Pages: [1]
1
Support / Re: Static sprite batcher not respecting layers properly?
« on: February 06, 2014, 11:36:46 pm »
Hi Unikron.

I am having the same problem, with the exception that I am already using z-values instead of 'order in layer'. Additionally I am setting up the sprite batcher via code at runtime, instead of setting it up beforehand in unity.

I got it working perfectly as long as there are no overlapping sprites, but in the case of overlapping sprites, the sprite batcher draws the first sprite encountered in the code on top, and every subsequent sprite is drawn under the last one, regardless of their z-value.

To position the batched sprites, i am using the function tk2dBatchedSprite.relativeMatrix.SetTRS() as indicated in the docs, in case it may have anything to do with it.

Been trying to solve this all day, with no success. Could you please help me out?


Thanks in advance.

Pages: [1]