Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var texture = new Texture2D(128, 128, TextureFormat.ARGB32, false); //create empty texture
- texture.Apply();
- GetComponent<Renderer>().material.mainTexture = texture;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement