private static void OnProjectLoad() { EditorScene = EditorSceneManager.GetActiveScene(); if (EditorScene.IsValid()) { CentreSceneView(); SetCullingDistances(SettingsManager.PrefabRenderDistance, SettingsManager.PathRenderDistance); SetClippingDistances(); EditorApplication.update -= OnProjectLoad; } }