UnityException after change textures resolution and render in runtime via scripting
Substance plugin for Unity "Substance 3D for Unity 3.4.0"Unity 2022.1.20f1 (but I also tested and on more earlier versions) Windows 10 There are several problems with changing texture resolution at runtime. I have described them below.Hi!First of all I want to say about SetTexturesResolution(Vector2Int size) method from SubstanceRuntimeGraph class. The description of the method says little. Only at random it became clear that in setting the resolution we indicate the power of two for the width and height, and not the size in pixels. Before everything became clear to me, Unity crashed 10 times 😞Now about the errors and problems themselves:1) If you set the maximum resolution (4096*4096) in the texture settings in the editor, then when you try to change the resolution to any lower one (2048,1024,512,256) using the SetTexturesResolution() method and render the texture using the Render() method, then on output we get an exception:UnityException: