- 最后登录
- 2021-7-6
- 注册时间
- 2012-12-27
- 阅读权限
- 90
- 积分
- 76145
- 纳金币
- 53488
- 精华
- 316
|
- using UnityEngine;
- using System.Collections;
- [ExecuteInEditMode()]
- public class SetRenderingLayer : MonoBehaviour
- {
- public string sortingLayer; //分类层
- public int sortingOrder; //排序顺序
- void Start()
- {
- this.GetComponent<Renderer>().sortingLayerName = sortingLayer;
- this.GetComponent<Renderer>().sortingOrder = sortingOrder;
- }
- }
复制代码 |
|