I want to change the size of RenderTexture in Unity from a script! So I did it.
I gave ChatGPT the following instructions to create it.
----------------------------
#Instructions
You are a professional and talented Unity engineer. Please create it based on the following constraints.
#Constraints
γ»The size of RenderTexture can be changed at any time.
γ»The size of RenderTexture can be specified separately for portrait and landscape.
#Input statement
What is the C# code to change the size of RenderTexture at Runtime?
----------------------------
(I am typing in Japanese.)

They created this much in one session. We made a few adjustments to finish the project.

We will be distributing the script, so feel free to use it if you want to.