static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Playables.TexturePlayableOutput o;
         o = new UnityEngine.Experimental.Playables.TexturePlayableOutput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #2
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 #3
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);
        }
Exemple #4
0
 private static PlayableOutput CreateTextureOutput(PlayableGraph graph, string name)
 {
     return(TexturePlayableOutput.Create(graph, name, null));
 }
Exemple #5
0
 public void SetTarget(RenderTexture value)
 {
     TexturePlayableOutput.InternalSetTarget(ref this.m_Handle, value);
 }
Exemple #6
0
 public RenderTexture GetTarget()
 {
     return(TexturePlayableOutput.InternalGetTarget(ref this.m_Handle));
 }