Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity image

//Make sure you are using UnityEngine.UI
using UnityEngine.UI

//We can assign this image in the inspector
public Image image;
//Also assign this in the inspector
public Sprite mySprite;

public void ChangeImage () 
{
	image.sprite = mySprite;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf toolbar disable overflow 
Csharp :: override gethashcode 
Csharp :: file to byte array 
Csharp :: long number multiplication 
Csharp :: minimize maximize restore wpf buttons 
Csharp :: c# copy files from one folder to another 
Csharp :: c# random 
Csharp :: how to convert object in string JSON c# 
Csharp :: bundle.config in mvc is missing 
Csharp :: c# excel workbook 
Csharp :: c# even or odd 
Csharp :: wpf get function name 
Csharp :: verify if number c# 
Csharp :: group by ef core 
Csharp :: c# Program for Sum of the digits of a given number 
Csharp :: c# get gridview DataKeyNames 
Csharp :: c# regex find last match 
Csharp :: sorting a datatable in c# 
Csharp :: how to load file from resources in c# 
Csharp :: c# add 2 arrays 
Csharp :: dapper sql builder where 
Csharp :: c# get all classes derived from type 
Csharp :: unity respawn 
Csharp :: how to insert value to identity column using entity framwork 
Csharp :: c# chunk array 
Csharp :: unity position ui element 
Csharp :: mysql: [Warning] Using a password on the command line interface can be insecure. 
Csharp :: c# loop string 
Csharp :: bytes size c# 
Csharp :: unity rb.addexplosionforce 2d 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =