#nullable enable using System; using System.Collections.Generic; using System.Linq; using Cysharp.Threading.Tasks; using UnityEngine; using UnityEngine.UIElements; using UVC.UIToolkit; /// /// UTKStyleGuideSample의 Icon 카테고리 Initialize 메서드들 /// public partial class UTKStyleGuideSample { #region Icon Initializers private void InitializeUTKMaterialIconsSample(VisualElement root) { var font = UTKMaterialIcons.LoadFont(); if (font == null) { root.Add(new Label("Error: UTKMaterialIcons 폰트를 로드할 수 없습니다.")); return; } // Icon 코드 블록 참조 저장 _materialIconCodeBlock = root.Q(); if (_materialIconCodeBlock != null && _materialIconCodeBlock.Title == "Icon") { UpdateMaterialIconCodeBlock("Home"); } _iconNameList = UTKMaterialIcons.GetAllIconNames().ToList(); _filteredIconNameList = _iconNameList; _iconCountLabel = root.Q