public static TexturePlayableOutput Create(PlayableGraph graph, string name, RenderTexture target) { PlayableOutputHandle handle; if (!TexturePlayableGraphExtensions.InternalCreateTextureOutput(ref graph, name, out handle)) { return(TexturePlayableOutput.Null); } TexturePlayableOutput output = new TexturePlayableOutput(handle); output.SetTarget(target); return(output); }
public static TexturePlayableOutput Create(PlayableGraph graph, string name, RenderTexture target) { PlayableOutputHandle handle; TexturePlayableOutput result; if (!TexturePlayableGraphExtensions.InternalCreateTextureOutput(ref graph, name, out handle)) { result = TexturePlayableOutput.Null; } else { TexturePlayableOutput texturePlayableOutput = new TexturePlayableOutput(handle); texturePlayableOutput.SetTarget(target); result = texturePlayableOutput; } return(result); }