Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var image = new GameObject("image", typeof(Image)).GetComponent<Image>();
- image.transform.SetParent(canvas.transform, false);
- image.color = fadeColour;
- image.transform.localScale = new Vector2(1.25f, 1.25f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement