Firstborn/Assets/GVX URP Decal/ExcludeFromGDecal.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

17 lines
400 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExcludeFromGDecal : MonoBehaviour
{
[Header("Needs a renderer as It changes material render queue in Runtime")]
[SerializeField]
int customRenderQueue = 2101;
void Start()
{
GetComponent<Renderer>().sharedMaterial.renderQueue = customRenderQueue;
Destroy(this);
}
}