Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }