Unity图片闪烁效果
using UnityEngine; using System.Collections; public class ShowHide : MonoBehaviour { public Texture2D img; void Update () { if (Time.time % 2 < 1) { guiTexture.texture = img; } else guiTexture.texture = null; } }
using UnityEngine; using System.Collections; public class ShowHide : MonoBehaviour { public Texture2D img; void Update () { if (Time.time % 2 < 1) { guiTexture.texture = img; } else guiTexture.texture = null; } }