You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of Object.FindObjectOfType in GA_Menu.cs generates a compiler warning, since it has been marked obsolete in favour of the newer Object.FindAnyObjectByType, Object.FindFirstObjectByType, and Object.FindObjectsOfType methods.
While the newer methods have been backported to versions >=2020, the obsoletion warning currently only affects Unity 6 and Unity 2023.
In this case Object.FindAnyObjectByType (docs here) should be used instead for Unity versions >= 2020.3, 2021.3, 2022.2, 2023, 6000.
The text was updated successfully, but these errors were encountered:
Usage of
Object.FindObjectOfType
inGA_Menu.cs
generates a compiler warning, since it has been marked obsolete in favour of the newerObject.FindAnyObjectByType
,Object.FindFirstObjectByType
, andObject.FindObjectsOfType
methods.While the newer methods have been backported to versions >=2020, the obsoletion warning currently only affects Unity 6 and Unity 2023.
In this case
Object.FindAnyObjectByType
(docs here) should be used instead for Unity versions>= 2020.3, 2021.3, 2022.2, 2023, 6000
.The text was updated successfully, but these errors were encountered: