- Home /
Display Raw Images at runtime in unity 4.6
Hi I am new to unity 4.6 I am trying to display or load raw images at runtime when timer finish this is my code using UnityEngine; using System.Collections; using UnityEngine.UI;
public class Display_Timer : MonoBehaviour { public Text timerLabel; private float seconds = 10; public bool TimerFlag = false; public RawImage image;
void Start () {
}
void Update () {
if (seconds >= 0 && TimerFlag == false) {
seconds -= Time.deltaTime;
timerLabel.text = seconds.ToString ("f0");
}
else if (seconds <= 0) {
TimerFlag = true;
image = Resources.Load<RawImage> ("image8");
Debug.Log("Timer Stopped");
}
}
} but the image doesn't display Plz help me to achieve the task regards
Comment
hi all Plz help me in resolving the above issue how can i display or load raw image at runtime in unity4.6 using c#
Regards
Your answer
Follow this Question
Related Questions
Loading image runtime from file 1 Answer
Let user select and load an image 1 Answer
Create scenes at runtime 2 Answers
How to change image at runtime using bytes 1 Answer
loading a downloaded file at runtime 1 Answer