Answers for "unity change the source image or image"

C#
4

unity change the source image or image

public Image test;
public Sprite example;

void Start()
{
 test.sprite = example; //change the source image of the image "test" to the sprite "example" 
}
Posted by: Guest on April-12-2020

Code answers related to "unity change the source image or image"

C# Answers by Framework

Browse Popular Code Answers by Language