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

26 lines
422 B
C#

using UnityEngine;
[ExecuteInEditMode]
public class RenderQueue : WPFMonoBehaviour
{
private void Awake()
{
if (base.renderer)
{
this.renderQueue = base.renderer.sharedMaterial.renderQueue;
}
}
private void Update()
{
if (base.renderer && this.setNow)
{
base.renderer.sharedMaterial.renderQueue = this.renderQueue;
this.setNow = false;
}
}
public int renderQueue;
public bool setNow;
}