This page lists changes in Unity 2022 LTS version which might affect existing projects when you upgrade them from a 2021 version to 2022 LTS.
Note: 2022 LTS is also known as 2022.3.0.
forceLimit
property now accepts force input instead of impulseGradientField
in the UI ToolkitBatchRendererGroup
forceLimit
property now accepts force input instead of impulseThe Articulation Drive forceLimit
feature was used previously as an impulse limit instead of a force limit. This made the force limit dependent on the fixedDeltaTime
value.
If you have already adapted to the use of this value as an impulse, when you upgrade, your values for forceLimit
in your Articulation Drive in the Articulation Body component will be incorrect by a large scale.
There are checks for when you open an older project. When you upgrade a project, Unity automatically divides the relevant values by the Time.fixedDeltaTime
set in the ProjectSettings > Time page to avoid the incorrect configuration. This catches most cases where robots are simulated based on the project set Time value.
If you use custom time values from script to simulate your robots, then you need to manually correct these values.
Unity’s UV generation procedure has changed. LightmapsA pre-rendered texture that contains the effects of light sources on static objects in the scene. Lightmaps are overlaid on top of scene geometry to create the effect of lighting. More info
See in Glossary might appear corrupted in projects that use the Generate Lightmap UVs option in Model Import Settings. To resolve this problem, rebake all of the lightmaps in your project.
This change only affects projects that use Generate Lightmap UVs.
GradientField
in the UI ToolkitFrom Unity 2022.1, the color picker in GradientField
doesn’t have HDRhigh dynamic range
See in Glossary enabled by default. Existing projects that use GradientField
now use a regular color picker instead of the HDR color picker.
To continue the use of a HDR color picker, you can enable it using the HDR property in GradientField
.
The following fields are now available that work automatically at runtime:
DoubleField
FloatField
IntegerField
LongField
Hash128Field
RectField
RectIntField
Vector2Field
Vector3Field
Vector4Field
Vector2IntField
Vector3IntField
BoundsField
BoundsIntField
The UXML files in your projects don’t update and work upon upgrading. However, when you add new promoted types through the UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary Builder, it breaks the backwards compatibility of UXML assets with older Unity versions. To keep the UXML assets backwards compatible, you need to use the old types (UnityEditor.UIElements
namespace) in UXML files.
The Physical keys option allows you to map key codes to the physical keyboard layout, rather than to the language-specific layout that may vary between users in different regions. For example, on some keyboards the first row of letters reads “QWERTY”, and on others it reads “AZERTY”. This means if you scripted specific controls to use the well known “WASD” keys for movement, they would not be in the correct physical arrangement (like the arrow-key arrangement) on an AZERTY-layout keyboard. With Physical Keys enabled, Unity uses a generic ANSI/ISO “Qwerty” layout to represent the physical location of the keys regardless of the user’s actual layout. This means if you specify the “Q” key, it will always be the left-most letter on the first row of letter keys, even if the user’s keyboard has a different letter in that position.
As of 2022.1 the option is enabled by default with intent of deprecating and removing old behavior in the future.
BatchRendererGroup
The BatchRendererGroup
API was originally written for the MegaCity demo but was never fully documented or usable without a lot of implementation details. This API has been rewritten from the ground up and is fully documented and supported.
For information on how to use the new interface, refer to the BatchRendererGroup page.
This upgrade guide describes how to upgrade to version 2022.2 of Unity’s built-in render pipeline.
To upgrade to other render pipelines to version 2022.2, refer to the documentation for the render pipeline you’re using:
To upgrade other packages, refer to the documentation for the packages you are using.
The EnlightenA lighting system by Geomerics used in Unity for Enlighten Realtime Global Illumination. More info
See in Glossary Baked Global IlluminationA group of techniques that model both direct and indirect lighting to provide realistic lighting results.
See in Glossary lightmapping backend is no longer available by default. When you upgrade a project to this version, Unity removes the Enlighten baking backend from the lightmapperA tool in Unity that bakes lightmaps according to the arrangement of lights and geometry in your scene. More info
See in Glossary selection dropdown and substitutes a Progressive Lightmapper in every SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary where you’ve selected the Enlighten baking backend.
On Apple silicon devices, Unity substitutes the Progressive GPU Lightmapper for the Enlighten baking backend. On all other devices, Unity selects the CPU Progressive Lightmapper.
To continue using the Enlighten baking back end, open Edit > Project Settings > Editor and in the Graphics section of that menu, activate Enable Enlighten for Baked GI (Legacy). However, this option isn’t available in 2023.1 and later.
The Minimum Bounces property of the Progressive Lightmapper is no longer available in the Lighting window.
When you upgrade a project to 2022.2, Unity resets the Minimum Bounces value to 2, the recommended number of minimum bounces for lightmapping. To change this value, edit the LightingSettings API property minBounces.
In 2022.2, Unity updated the default versions of all tools used by Android. The new versions are as follows:
Tool | Version | |
---|---|---|
SDK | ||
Cmdline-tools component | version 6.0 | |
Build-tools component version | 32.0.0 | |
Platform-tools component | 32.0.0 | |
Platform (API level) | 31 and 32 added by default | |
Tools component | Removed | |
NDK | r23b | |
JDK (OpenJDK) | 11.0.14.1+1 | |
GradleAn Android build system that automates several build processes. This automation means that many common build errors are less likely to occur. More info See in Glossary |
7.2 | |
Android Gradle Plugin | 7.1.2 |
The update to Gradle version 7.2 changed some build.gradle file configuration options. This required significant changes to Unity’s default gradle templates. Unity won’t attempt to upgrade custom Gradle templates to match the new format which means projects that contain custom template files might fail to build. To solve this, recreate any custom template files based on the new default template files.
For information about the build.gradle
configuration option changes, refer to the Android Gradle Plugin release notes.
The package documentation is located here: https://docs.unity3d.com/Packages/com.unity.ai.navigation@latest
If you have projects that were created with the Navigation feature in previous versions of the Unity engine you can do one of the following:
In either case, the AI Navigation package is automatically installed and added to your project.
To start using the new package you need to convert your project as follows:
As part of the conversion process, the NavMesh Updater makes the following changes:
If the NavMeshes in different scenes are baked with different agent settings then you need to create new Agent types to match those settings. To create the Agent types do the following:
When you have created the new entries you then need to do the following:
To find the settings that were used for each existing NavMesh, select the NavMesh .asset file in the Project windowA window that shows the contents of your Assets
folder (Project tab) More info
See in Glossary. The NavMesh settings is displayed in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary.
If your project uses the NavMeshSurface
, NavMeshModifier
, NavMeshModifierVolume
or NavMeshLink
components defined by scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary downloaded from Unity’s NavMeshComponents GitHub repository , then remove those scripts and any associated files before you add the AI Navigation package to your project. If you don’t remove these scripts, you might get conflicts and errors related to these components in the Console. The new components mirror the same behavior as the old components do in your project except when using the following components:
NavMeshSurface
component now includes an option to use only the objects that have a NavMeshModifier
in the baking process.NavMeshModifier
component to child objects in the hierarchy.Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.