rise-and-swine/Assets/Scripts/Assembly-CSharp/SetRendererSortingLayer.cs
2023-02-25 23:04:03 -05:00

17 lines
385 B
C#

using UnityEngine;
[ExecuteInEditMode]
public class SetRendererSortingLayer : MonoBehaviour
{
private void OnEnable()
{
base.GetComponent<Renderer>().sortingLayerName = this.sortingLayerName;
base.GetComponent<Renderer>().sortingOrder = this.sortingOrder;
}
[SerializeField]
private string sortingLayerName = string.Empty;
[SerializeField]
private int sortingOrder;
}