Tanoda
PushShaderToBack.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
6
[RequireComponent(typeof(MeshRenderer))]
7
public
class
PushShaderToBack
: MonoBehaviour
8
{
9
public
int
renderQueue
= 0;
10
void
Start()
11
{
12
StartCoroutine(Work());
13
}
14
15
IEnumerator Work()
16
{
17
yield
return
new
WaitForEndOfFrame();
18
GetComponent<MeshRenderer>().material.renderQueue =
renderQueue
;
19
}
20
}
PushShaderToBack
Definition:
PushShaderToBack.cs:8
PushShaderToBack.renderQueue
int renderQueue
Definition:
PushShaderToBack.cs:9
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
PushShaderToBack.cs
Generated by
1.9.3