Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: joepalos on August 17, 2016, 01:23:35 PM

Title: RenderTexture to Texture2D
Post by: joepalos on August 17, 2016, 01:23:35 PM
Since nobody helped me out, I made it myself.

This action takes a RenderTexture object variable and outputs a Texture2D texture variable.

Enjoy.
Title: Re: RenderTexture to Texture2D
Post by: dudebxl on August 20, 2016, 09:08:11 AM
Cool, thanks.

Could you please publish it to the ecosystem  :)
Title: Re: RenderTexture to Texture2D
Post by: joepalos on August 21, 2016, 05:19:57 AM
Sure! I will as soon as I can make it work, it's STILL broken with error 500 and JSON errors.
Title: Re: RenderTexture to Texture2D
Post by: djaydino on August 21, 2016, 09:11:05 AM
Hi,
Ecosystem seems to work fine now with me.
Title: Re: RenderTexture to Texture2D
Post by: playmakertester on March 20, 2021, 11:05:17 PM
Hi,

Is this cs works for unity 2019 version?
Title: Re: RenderTexture to Texture2D
Post by: djaydino on March 21, 2021, 07:55:45 PM
Hi.
Best is to place in your project and try :)
If you get errors you can remove the file.
Title: Re: RenderTexture to Texture2D
Post by: playmakertester on March 22, 2021, 06:15:05 AM
Hi djaydino,

Thanks, Just tried.
For 2019, there is some errors, so removed.

Thanks!
Title: Re: RenderTexture to Texture2D
Post by: djaydino on March 22, 2021, 09:21:21 AM
Hi.
Could you share the errors
Title: Re: RenderTexture to Texture2D
Post by: playmakertester on March 23, 2021, 07:11:26 AM
Hello.

I just revalidated and could not identify the condition for the recurrence of the bug. If I can reproduce the bug, I will let you know here.

Thanks.
Title: Re: RenderTexture to Texture2D
Post by: playmakertester on March 26, 2021, 11:23:38 AM
Hello.

I have identified the problem.
When the type of Input Render Texture is set to "Texture" of "Object Type", it can be set as a variable, but when the type is set to "Texture", the variable cannot be selected as Input Render Texture. However, when the type is set to "Texture", the variable cannot be selected as Input Render Texture.

Now I am trying to create a Render Texture with Create Render Texture and set it as the Input Render Texture variable in Render Texture To Texture 2D as shown in the figure. However, the Render Texture created with Create Render Texture is of type "Texture" and cannot be set to the Input Render Texture variable in Render Texture To Texture 2D.

Do you have any advice on how to fix this?
Title: Re: RenderTexture to Texture2D
Post by: playmakertester on March 26, 2021, 08:14:12 PM
Could it be that this function can only convert a square RenderTexture to Texture2D?