예제 #1
0
        public static ScriptPlayableOutput Create(PlayableGraph graph, string name)
        {
            PlayableOutputHandle handle;

            if (!graph.CreateScriptOutputInternal(name, out handle))
            {
                return(ScriptPlayableOutput.Null);
            }
            return(new ScriptPlayableOutput(handle));
        }
예제 #2
0
        public static ScriptPlayableOutput Create(PlayableGraph graph, string name)
        {
            PlayableOutputHandle handle;
            ScriptPlayableOutput result;

            if (!PlayableGraph.CreateScriptOutputInternal(ref graph, name, out handle))
            {
                result = ScriptPlayableOutput.Null;
            }
            else
            {
                result = new ScriptPlayableOutput(handle);
            }
            return(result);
        }