RenderQueueChange.cs 302 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. public class RenderQueueChange : MonoBehaviour
  4. {
  5. private void Start()
  6. {
  7. MeshRenderer component = base.GetComponent<MeshRenderer>();
  8. if (component != null)
  9. {
  10. component.material.renderQueue = this.m_RenderQueue;
  11. }
  12. }
  13. public int m_RenderQueue = 4000;
  14. }