public static ScriptPlayableOutput Create(PlayableGraph graph, string name) { PlayableOutputHandle handle; if (!graph.CreateScriptOutputInternal(name, out handle)) { return(ScriptPlayableOutput.Null); } return(new ScriptPlayableOutput(handle)); }
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); }