Could either one of you present a graph of how this would be set up? I don’t understand the steps in between GetComponent (UdonBehaviour) -> SendCustomEvent, as SendCustomEvent requires an instance and I can’t plug in the component into the instance slot. So how do you get the returned component back into an instance?
After extraneous testing and missing the obvious, I worked it out. You need to take the output from the GetComponent and assign it to an UdonBehaviour variable
For future refrence / until Udon Behaviour Arrays are implemented, if anybody needs reference, here’s the graph as well as the U# solution;
public UdonSharpBehaviour targetPrograms;
private UdonSharpBehaviour currentProgram;
for (var i = 0; i < targetPrograms.Length; i++)
currentProgram = targetPrograms[i];