浏览代码

Merge branch 'material' into 'master'

material theatre scene - load font in Awake

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!167
/main
Shenhua Gu 6 年前
当前提交
28b766f3
共有 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");
}
}

正在加载...
取消
保存