Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

display image script unity

public class Test : MonoBehaviour
{
    private Sprite img1;
    public GameObject MyImage;
 
    // Start is called before the first frame update
    void Start()
    {
        MyImage.AddComponent(typeof(Image));
        img1 = Resources.Load<Sprite>("ARInfo/Magazine1/1");
        MyImage.GetComponent<Image>().sprite = img1;
        Debug.Log("Test script started");
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: run in wpf 
Csharp :: Save variable unity 
Csharp :: C# Async Function simple 
Csharp :: the underlying connection was closed nuget 
Csharp :: how to stop timer in c# windows application 
Csharp :: how to get params our of url c# VB 
Csharp :: Generic Stack 
Csharp :: c# datagridview change column alignment 
Csharp :: create class for database connection in c# 
Csharp :: C# Async Function without await 
Csharp :: list to ilist c# 
Csharp :: maximum sum subarray c# 
Csharp :: c# switch example 
Csharp :: list view in unity 
Csharp :: Transpose Matrix C# 
Csharp :: entity framework id not auto increment 
Csharp :: js if empty then 0 
Csharp :: dateTime first/last 
Csharp :: C3 compare hour 
Csharp :: create a hash of an XML c# 
Csharp :: rename join ta le in many to many 
Csharp :: c# list find null 
Csharp :: camera follow player unity 
Csharp :: MissingMethodException: PlayerManager.OnPlayerLeft Due to: Attempted to access a missing member. 
Csharp :: pcamera 
Csharp :: // Force WPF to render UI changes immediately with this magic line of code... 
Csharp :: how to change font text mesh pro 
Csharp :: add dynamic value in startup file in .net core api 
Csharp :: writeline in C# 
Csharp :: IEqualityComparer gethashcode strings c# 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =