How can I change control texture resolution during runtime?

As, the title suggests, I’m looking into how I can change the control texture resolution during runtime. Main reason I need this is for, more or less, fully dynamically generated terrain, and I need to be able to make textures behave appropriately.

Performance spiking isn’t an issue as this will be part of a one-off/during-loading process.

I couldn’t find anything off some quick searches.

So, yeah. How can I change the control texture resolution during runtime?

EDIT: This is important because I’m trying to display a grid on the terrain and it has to stay at a fixed size.

Just set the size parameter of the TerrainData structure you use to create your terrain.

(Of course, you will not be able to keep any terrain data. Changing resolution stuff always comes before creating the terrain)

This question talks about dynamically create terrain.