Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1.         var texture = new Texture2D(128, 128, TextureFormat.ARGB32, false); //create empty texture                
  2.         texture.Apply();
  3.         GetComponent<Renderer>().material.mainTexture = texture;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement