We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa49a4 commit 0807248Copy full SHA for 0807248
Scripts/Editor/SettingProperties.cs
@@ -8,7 +8,13 @@ internal static class SettingProperties
8
public static void Draw(SerializedObject obj)
9
{
10
// Music
11
- DrawProperty("music", SettingStyles.music, obj);
+ var music = obj.FindProperty("music");
12
+ DrawProperty(music, SettingStyles.music);
13
+
14
+ if (music.objectReferenceValue == null)
15
+ {
16
+ EditorGUILayout.HelpBox("No music provided!", MessageType.Error);
17
+ }
18
19
// Font
20
DrawProperty("font", SettingStyles.font, obj);
0 commit comments