2D Toolkit Forum

2D Toolkit => Support => Topic started by: Babaganoosh on August 21, 2013, 05:25:11 pm

Title: 2d Toolkit/Unity depth sort priority
Post by: Babaganoosh on August 21, 2013, 05:25:11 pm
Hey Dinesh,

I sometimes have some weird issues when sprites are set to the same Z depth, ie they would occasionally shift in front and in back constantly. Is there a way to fix this without explicitly making sure all objects have different Z depths? Thanks!
Title: Re: 2d Toolkit/Unity depth sort priority
Post by: unikronsoftware on August 21, 2013, 05:47:16 pm
No there isn't. The transforms applied can result in very slightly different floating point values, so it really isn't possible to deterministically sort these. However, if you have tk2d 2.2 beta, you can try the new render layer setting - its very much like setting z to determine sort order, but the sprite appears at exactly the same position.
Title: Re: 2d Toolkit/Unity depth sort priority
Post by: x8105 on September 08, 2013, 03:56:48 pm
quick question, are -#'s supported?
Title: Re: 2d Toolkit/Unity depth sort priority
Post by: unikronsoftware on September 08, 2013, 03:58:27 pm
Yes