using System.Collections.Generic; using UIWidgetsGallery.gallery; using Unity.UIWidgets.Editor; using Unity.UIWidgets.engine; using Unity.UIWidgets.widgets; using UnityEditor; using UnityEngine; namespace UIWidgetsEditorWindowSample { public class EditorWindowGallery : UIWidgetsEditorPanel { [MenuItem("UIWidgets/EditorSample/GalleryMain")] public static void CountDemo() { CreateWindow(); } protected override void onEnable() { AddFont("Material Icons", new List {"MaterialIcons-Regular.ttf"}, new List {0}); AddFont("CupertinoIcons", new List {"CupertinoIcons.ttf"}, new List {0}); AddFont("GalleryIcons", new List {"gallery/GalleryIcons.ttf"}, new List {0}); } protected override void main() { ui_.runApp(new GalleryApp()); } } }