浏览代码

Report emoji texture image load issue.

/main
Yuncong Zhang 5 年前
当前提交
5cedeb98
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 2
      Runtime/ui/painting/canvas_impl.cs
  2. 4
      Runtime/ui/txt/emoji.cs

2
Runtime/ui/painting/canvas_impl.cs


using System;
using System.Collections.Generic;
using System.Net;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.material;
using UnityEngine;

}
else {
Paint paintWithWhite = new Paint(p) {color = Colors.white};
if (EmojiUtils.image == null) return;
layer.draws.Add(CanvasShader.tex(layer, paintWithWhite, mesh.resolveMesh(), EmojiUtils.image));
}
};

4
Runtime/ui/txt/emoji.cs


using System;
using System.Collections.Generic;
using Unity.UIWidgets.foundation;
using UnityEngine;
namespace Unity.UIWidgets.ui {

Resources.Load<Texture2D>("Emoji")
);
}
catch (Exception) {
catch (Exception e) {
Debug.LogError(e.StackTrace);
}
}

正在加载...
取消
保存