diff --git a/Editor/ScreenEditor.cs b/Editor/ScreenEditor.cs index 3099519..e333241 100644 --- a/Editor/ScreenEditor.cs +++ b/Editor/ScreenEditor.cs @@ -51,6 +51,8 @@ static void DrawNavigator(Navigator navigator, Rect rect) { } static void DrawScreen(VioletScreen screen, Rect rect) { + // prefab mode + if (screen.transform.parent == null) { return; } var navigator = screen.transform.parent.GetComponent(); if (navigator == null) { Violet.LogWarning($"Unable to find Navigator for {screen.name} - make sure {screen.transform.parent.name} has a Navigator component");