123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class TianJiRawImage : MonoBehaviour
- {
- public static string type="";
- public Texture2D LightTexture;
- public Texture2D DarkTexture;
- void Awake()
- {
- RawImage ri =this.GetComponent<RawImage>();
- if(ri!=null&&ri.texture!=null)
- {
- Debug.Log("RawImage===>"+ri.texture.name);
- }
- }
- }
|