예제 #1
0
        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);
        }