Skip to content

Instantly share code, notes, and snippets.

@hisasann
Created January 7, 2014 06:41
Embed
What would you like to do?
レンダリングする順番を調整する
using UnityEngine;
using System.Collections;
[AddComponentMenu("Custom/Scripts/Render/RenderQueue")]
public class RenderQueue : MonoBehaviour
{
public int queue = 1;
// Use this for initialization
void Start ()
{
if (!gameObject.renderer) {
return;
}
gameObject.renderer.material.renderQueue += queue;
}
// Update is called once per frame
void Update ()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment