SetTextureOffset
How do I use Set Texture Offset
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
39 | mat.SetTextureOffset ("_MainTex", offset); | 1 |
File name: Background.cs
Copy
37 void ScrollMovement(){
38 offset.y += speed * Time.deltaTime;
39 mat.SetTextureOffset ("_MainTex", offset);
40 }
SetTextureOffset 173 lượt xem
Gõ tìm kiếm nhanh...