Hello Guest

Author Topic: How to change sorting layer of sprite?  (Read 3607 times)

birdkingz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
How to change sorting layer of sprite?
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to change sorting layer of sprite?
« Reply #1 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.