Question by
khrysller · Jun 20, 2019 at 12:30 AM ·
c#3dsorting order
Change sphere sorting order with c sharp
I have a sphere in my 2D project and would like to know how can I change the sorting order of it using C Sharp. I am using the following for my 2D objects:
ball.render.sortingOrder = 100; //sprinte render
ballpart.sortingOrder = 100; //particle
Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612203509im_/https://answers.unity.com/themes/thub/images/avi.jpg)