public PlayableOutput GetOutputByType <T>(int index) where T : struct, IPlayableOutput { PlayableOutputHandle handle; PlayableOutput result; if (!PlayableGraph.GetOutputByTypeInternal(ref this, typeof(T), index, out handle)) { result = PlayableOutput.Null; } else { result = new PlayableOutput(handle); } return(result); }