Advertisement
Munchy2007

screenfader3

May 25th, 2016
4,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. var image = new GameObject("image", typeof(Image)).GetComponent<Image>();
  2. image.transform.SetParent(canvas.transform, false);
  3. image.color = fadeColour;
  4. image.transform.localScale =  new Vector2(1.25f, 1.25f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement