using Sandbox.Audio; namespace Editor; /// /// Dropdown selection for font names /// [CustomEditor( typeof( string ), WithAllAttributes = new[] { typeof( FontNameAttribute ) } )] sealed class FontControlWidget : DropdownControlWidget { public FontControlWidget( SerializedProperty property ) : base( property ) { } protected override IEnumerable GetDropdownValues() { return EditorUtility.FontFamilies.Order().Cast(); } }