2D Toolkit Forum

2D Toolkit => Support => Topic started by: birdkingz on October 28, 2015, 02:21:38 am

Title: How to change sorting layer of sprite?
Post by: birdkingz on October 28, 2015, 02:21:38 am
In Unity Sprite, I can change the sorting layer name in code but I couldn't find anything in tk2dSprite? Possible to add this feature?
Title: Re: How to change sorting layer of sprite?
Post by: unikronsoftware on November 03, 2015, 01:19:08 pm
The sorting layer name is a property of all renderers in Unity. so GetComponennt<Renderer>().sortingLayerName = "Hello"; will work fine.