We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fec5e65 commit db390f5Copy full SHA for db390f5
com.unity.netcode.gameobjects/Runtime/Core/FindObjects.cs
@@ -10,12 +10,10 @@ public static T[] FindObjectsByType<T>() where T : Object
10
{
11
#if NGO_FINDOBJECTS_NOSORTING
12
var results = Object.FindObjectsByType<T>();
13
-#else
14
-#if UNITY_2023_1_OR_NEWER
+#elif UNITY_2023_1_OR_NEWER
15
var results = Object.FindObjectsByType<T>(FindObjectsSortMode.None);
16
#else
17
var results = Object.FindObjectsOfType<T>();
18
-#endif
19
#endif
20
return results;
21
}
0 commit comments