Skip to content

Commit 2a3c6a1

Browse files
committed
Started hiding the prefab Play Mode message in Preferences and changed its type to info
1 parent 2f7e319 commit 2a3c6a1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Editor/Settings/SettingsDrawer.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ private static void OnGUI(string searchContext)
4848

4949
EditorGUILayout.Space(EditorGUIUtility.singleLineHeight);
5050

51-
EditorGUILayout.HelpBox(
52-
"If you notice that entering play mode takes too long, you can try disabling this option. " +
53-
"Folders will not be stripped from prefabs that are instantiated at runtime, but if performance in " +
54-
"Play Mode does not matter, you will be fine.", MessageType.Warning);
51+
if (StripSettings.StripFoldersFromPrefabsInPlayMode)
52+
{
53+
EditorGUILayout.HelpBox(
54+
"If you notice that entering play mode takes too long, you can try disabling this option. " +
55+
"Folders will not be stripped from prefabs that are instantiated at runtime, but if performance in " +
56+
"Play Mode does not matter, you will be fine.", MessageType.Info);
57+
}
5558

5659
using (new TemporaryLabelWidth(230f))
5760
{

0 commit comments

Comments
 (0)