浏览代码

Merge branch 'text_edit' into 'master'

fix Awake warning

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!165
/main
Shenhua Gu 6 年前
当前提交
461cc1e2
共有 4 个文件被更改,包括 8 次插入4 次删除
  1. 3
      README.md
  2. 3
      Samples/UIWidgetSample/MaterialSample.cs
  3. 3
      Samples/UIWidgetSample/txt/FontWeightStyle.cs
  4. 3
      Samples/UIWidgetsGallery/GalleryMain.cs

3
README.md


namespace UIWidgetsSample {
public class UIWidgetsExample : UIWidgetsPanel {
void Awake() {
protected override void Awake() {
base.Awake();
// Application.targetFrameRate = 60; // or higher if you want a smoother scrolling experience.
// if you want to use your own font or font icons.

3
Samples/UIWidgetSample/MaterialSample.cs


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

3
Samples/UIWidgetSample/txt/FontWeightStyle.cs


namespace UIWidgetsSample {
public class FontWeightStyle : UIWidgetsSamplePanel {
void Awake() {
protected override void Awake() {
base.Awake();
// To run this sample, you need to download Roboto fonts and place them under Resources/Fonts folder
// Roboto fonts could be downloaded from google website
// https://fonts.google.com/specimen/Roboto?selection.family=Roboto

3
Samples/UIWidgetsGallery/GalleryMain.cs


return new GalleryApp();
}
void Awake() {
protected override void Awake() {
base.Awake();
FontManager.instance.addFont(Resources.Load<Font>("MaterialIcons-Regular"), "Material Icons");
FontManager.instance.addFont(Resources.Load<Font>("GalleryIcons"), "GalleryIcons");
}
正在加载...
取消
保存