hej guys, I have a little problem with setTextureOffset. when im using snippet
Vector2 uv = new Vector2(0, 1);
Vector2 uvOffset = Vector2.zero;
public void Update() {
uvOffset += ( uv * Time.deltaTime );
if( renderer.enabled ) {
renderer.material.mainTextureOffset = uvOffset;
}
}
everything is alright only at the begining. my texture scroll nice. but after quite time when uvOffset grow to high values texture has strange distortion. it’s getting strange artifacts.
how should I animate/scroll texture properly ? is it possible to assign only values in 0…1 range to animate values ?
best regards