Ejemplo n.º 1
0
    protected static void ShowButtomImage(string path)
    {
        Texture2D texture = LoadRes.DownImage(path);

        if (null != texture)
        {
            MyCreate.Image(texture);
        }
        else
        {
            MyCreate.Image(Texture2D.whiteTexture);
        }
    }
Ejemplo n.º 2
0
        protected static void ShowImage(string path)
        {
            Texture2D texture = LoadRes.DownImage(path);

            if (null != texture)
            {
                Rect rect = GUILayoutUtility.GetRect(0f, 0f);
                rect.width  = texture.width;
                rect.height = texture.height;
                GUILayout.Space(rect.height);
                GUI.DrawTexture(rect, texture);
            }
            else
            {
                MyCreate.Image(Texture2D.whiteTexture);
            }
        }
Ejemplo n.º 3
0
        protected static void ShowImage(string path, int kongGe = 13)
        {
            Texture2D texture = LoadRes.DownImage(path);

            ShowImage(texture);
        }