Select to view content in your preferred language

ArcGIS SDK Unity version support

473
1
08-27-2024 07:29 AM
MarkusFynd
Emerging Contributor

Hello. I've recently started looking into the Esri ArcGIS SDK for Unity. It looks promising for my use case, but my main project is using Unity 2021.3.x. According to the latest release notes, support for Unity 2021 has been dropped. I am wondering what the main differences are, compared to the previous version (1.5.0)? It seems like a method call in ArcGISMapCreatorCameraTool.cs on line 102 to FindFirstObjectByType() could be replaced by FindObjectOfType() to get rid of any compile errors. I have not gotten so far in my experimentation as of yet, so I'm basically wondering if there are other breaking changes that won't allow me to run the latest version in Unity 2021? Upgrading my Unity project is something to consider, but the upgrade path will not be easy as the project is quite large already - so I'd like to avoid that if possible.

0 Kudos
1 Reply
MasonGaw
Regular Contributor

Hello, 

The primary differences between older versions that support Unity 2021.x and the new version that does not is the methods used. For instance you mentioned FindObjectOfType(). This method was deprecated in newer versions of Unity and in order to support Unity 6 we had to change that method to the new one, that being FindFirstObjectByType(). There are other methods similar to this one that either have been deprecated or showed as warnings that they will be deprecated in later releases.

If the project you are working on can not be upgraded to Unity 2022.x or newer (Unity 6 once out of preview), we recommend using the latest version of the SDK that supports your version of Unity. If you are using new features or relying on a bug fix found in previous versions and need to use 1.6, we recommend upgrading your project to Unity 2022.x but with caution. Make a backup before doing any upgrading and we highly recommend using some sort of Version Control like Github. 

Please let me know if you have any other questions.

Mason

0 Kudos