Gday Gang trying to access the Alpha property to gui image sop i can make it fade out over time for my mission update effect,
Assets/Scripts/GUI/Missionupdate.cs(17,23): error CS1061: Type UnityEngine.UI.Image' does not contain a definition for
Alpha’ and no extension method Alpha' of type
UnityEngine.UI.Image’ could be found (are you missing a using directive or an assembly reference?)
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Missionupdate : MonoBehaviour {
public Image image;
public float FadeTime = 12f;
void Start() {
image = GetComponent<Image>();
}
void Update (){
image.Alpha -= 1 * FadeTime * Time.deltaTime;
}
}