playMaker

Author Topic: RenderTexture to Texture2D  (Read 5072 times)

joepalos

  • Playmaker Newbie
  • *
  • Posts: 28
RenderTexture to Texture2D
« 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.
« Last Edit: August 17, 2016, 01:57:25 PM by joepalos »

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: RenderTexture to Texture2D
« Reply #1 on: August 20, 2016, 09:08:11 AM »
Cool, thanks.

Could you please publish it to the ecosystem  :)

joepalos

  • Playmaker Newbie
  • *
  • Posts: 28
Re: RenderTexture to Texture2D
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: RenderTexture to Texture2D
« Reply #3 on: August 21, 2016, 09:11:05 AM »
Hi,
Ecosystem seems to work fine now with me.

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: RenderTexture to Texture2D
« Reply #4 on: March 20, 2021, 11:05:17 PM »
Hi,

Is this cs works for unity 2019 version?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: RenderTexture to Texture2D
« Reply #5 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.

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: RenderTexture to Texture2D
« Reply #6 on: March 22, 2021, 06:15:05 AM »
Hi djaydino,

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

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: RenderTexture to Texture2D
« Reply #7 on: March 22, 2021, 09:21:21 AM »
Hi.
Could you share the errors

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: RenderTexture to Texture2D
« Reply #8 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.

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: RenderTexture to Texture2D
« Reply #9 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?
« Last Edit: March 26, 2021, 11:29:40 AM by playmakertester »

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: RenderTexture to Texture2D
« Reply #10 on: March 26, 2021, 08:14:12 PM »
Could it be that this function can only convert a square RenderTexture to Texture2D?