hello. I am a student taking a course in Korea.
This time, Unity has been updated to version 6.0, so I’m learning with the new version.
However, the new version deprecates the FindObjectOfType method.
‘Object.FindObjectsOfType()’ is obsolete: ‘Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not. FindObjectsOfType sorts the results by InstanceID but if you do not need this using FindObjectSortMode.None is considerably faster.’
If I need to change to another method, could you please tell me which one I should use?