#UnityTips Instead of using FindObjectsOfType, use FindObjectsByType which was added in recent unity version.
It is taking a sortMode as a parameter and setting this to FindObjectsSortMode.None skips sorting the array and runs significantly faster.#indiedev #gamedev pic.twitter.com/XbpB5sag83
— Binary Impact (@BinaryImpactG) September 5, 2023