Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question RenderTargetHandle has been removed and gives an error to replace with RTHandle, breaking change

Discussion in '2023.1 Beta' started by nasos_333, Mar 21, 2023.

  1. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,015
    Hi,

    I recently installed 2023.1 latest version and seems all image effects on URP are 100% broken

    RenderTargetHandle has been removed and gives an error to replace with RTHandle, which is far from trivial and gives like a 100+ more errors after a simple replacement

    Is this something that is in Beta only, or will propagate to the final releases ?

    I mean such a change will destroy every single of my projects for months or years to fix, is this something that was indented or we can expect that RenderTargetHandle will function normally as in Unity 2022 in the final release of Unity 2023 after the Beta ?

    This is such a massive change that may mean weeks or months of work to recover the broken projects.

    Thanks
     
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    644
    RenderTargetHandle has been marked as obsolete since 2022.1, so I think they removed it this time (1 year later).
     
  3. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,015
    Sure, i dont use 2022 so would not know, as is not LTS yet, but the question still remains why remove it and break everything.

    In any case, i managed to port to the new system, the only thing i miss is how to do the frame clean up function, as seems is no longer possible to do checks for renderer there, because RenderTextureHandler.CameraTarget is missing
     
    wwWwwwW1 likes this.
  4. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    644
    Agree that removing obsolete features in second version is a good idea, so that people can have time to fix them before the LTS released.

    Maybe Unity thinks people should remove these obsolete features within a year of the warning message.
     
    nasos_333 likes this.
  5. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,015
    Indeed probably they have something in mind, but with the state of Unity currently working on non LTS is very tricky, so they should consider only remove features that had warnings in a widely used LTS version imo as a general rule, so make sure people actually know about them.

    I generally also work by skipping one Unity version, because goes so extremely fast. E.g. i skilled 2017, 2018 and 2020 completely, as was never needed to move there, and now is 2022 turn, so will probably never use 2022 either at all in my case.
     
    wwWwwwW1 likes this.