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));
     }
 }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #4
0
 private static PlayableOutput CreateTextureOutput(PlayableGraph graph, string name)
 {
     return(TexturePlayableOutput.Create(graph, name, null));
 }
Beispiel #5
0
 public void SetTarget(RenderTexture value)
 {
     TexturePlayableOutput.InternalSetTarget(ref this.m_Handle, value);
 }
Beispiel #6
0
 public RenderTexture GetTarget()
 {
     return(TexturePlayableOutput.InternalGetTarget(ref this.m_Handle));
 }