Hi
I have a texture (on a UITexture object) I need to move using it's UVs all the time. I am using:
.uvRect = new Rect
( (_magnetic
/ 360
.0f
) , 0f, 1f, 1f
);
Its in the onUpdate. It works fine, but I'm just thinking about performance, do I need to build a new Rect all the time? All I need to change is the UV x axis.
I tried 'uvRect.x =' but that throws up an error:
error CS1612: Cannot modify a value type return value of `UITexture.uvRect'. Consider storing the value in a temporary variablemany thanks for any ideas...