浏览代码

material theatre scene - load font in Awake

/main
xingwei.zhu 6 年前
当前提交
84941b56
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs

6
Samples/UIWidgetsTheatre/UIWidgetsTheatre.cs


home: entries[this.testCaseId].entryWidget);
}
protected override void OnEnable() {
base.OnEnable();
FontManager.instance.addFont(Resources.Load<Font>(path: "MaterialIcons-Regular"));
protected override void Awake() {
base.Awake();
FontManager.instance.addFont(Resources.Load<Font>("MaterialIcons-Regular"), "Material Icons");
}
}

正在加载...
取消
保存