- 最后登录
- 2019-12-25
- 注册时间
- 2012-8-24
- 阅读权限
- 90
- 积分
- 71088
- 纳金币
- 52336
- 精华
- 343
|
- 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;
- }
- }
复制代码 来自:UnityTerminator |
|