This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YourRenderPass : ScriptableRenderPass | |
{ | |
private FieldInfo _deferredLightsGetter = typeof(UniversalRenderer).GetField("m_DeferredLights", BindingFlags.NonPublic | BindingFlags.Instance); | |
public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) | |
{ | |
var renderer = renderingData.cameraData.renderer as UniversalRenderer; | |
object deferredLights = _deferredLightsGetter.GetValue(renderer); | |
FieldInfo gBufferRTsGetter = deferredLights.GetType().GetField("GbufferRTHandles", BindingFlags.NonPublic | BindingFlags.Instance); | |
var gBuffers = gBufferRTsGetter.GetValue(deferredLights) as RTHandle[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[System.Serializable] | |
public class CustomUnityAction { | |
[SerializeField] | |
public List<SerializableAction> actions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using NAudio.Midi; | |
using System.IO; | |
using System.Linq; | |
public class MidiReader : MonoBehaviour { | |
public MidiFile midi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class RhubarbData | |
{ | |
public float time; | |
public string phoneme; | |
public float delay; | |
} |