Unity 2021.2.11

Released:
Select the runtime platforms of your choice from the list below (the desktop runtime is included as standard) or, to install the full complement of runtime platforms, use the download assistant installer above.
New to Unity? Get started

Known Issues in 2021.2.11f1

  • 2D: [Lost Crypt] Unable to find URP 12.1.0 package error when importing Lost Crypt (1388129)

  • AI Navigation: NavMesh Agent can not pass through passable area between carving NavMesh Obstacles (1346325)

  • Asset Bundles: Asset Bundle size incrementally increases when updating the Unity Editor and rebuilding the Asset Bundle (1391542)

  • HD RP: [General][AssetDB][URP] Adding URP to the project causes reimports of many assets and goes into infinite import loops (1374611)

  • IMGUI: Slider Min and Max Values become the same as the other Slider when selecting multiple Slider GameObjects in the Hierarchy window (1388196)

  • Inspector Framework: In Record and Preview mode, right clicking Scale does not bring up Animation related features (1365369)

  • Linux: Player settings and other options are locked after script compilation (1380015)

  • Linux: Editor crashes at "RegisterRuntimeInitializeAndCleanup::ExecuteCleanup()" when quitting from "Enter Safe Mode" prompt [Linux] (1374087)

  • Linux: Editor crashes at "__assert_fail_base.cold" when opening a project (Linux) (1375312)

  • MacOS: [M1] "System is running out of memory" error is thrown when using Profiler as a Standalone Process with Deep Profile turned on (1386242)

  • MacOS: [M1][IL2CPP] Unity spawns Intel clang processes when building with Silicon Editor (1392604)

  • MacOS: [OSX][Editor] DirectoryNotFoundException errors appear when a project is created inside a directory with unicode characters (1377915)

  • Metal: Application crashes when "Metal Write-Only Backbuffer" is enabled (1379210)

  • Metal: Consistent EditorLoop 5-10ms spikes when using Metal API (1378985)

  • OpenGL: Unity crashes when entering "-force-opengl" or "-force-glcore" in the Advanced Project Settings (1374768)

  • Progressive Lightmapper: Crash while sculpting Terrain and Baking Lightmaps (1266511)

  • Progressive Lightmapper: Unity 2021.2 crashes on some Windows7 PCs when tbb12.dll gets loaded (1361676)

  • Progressive Lightmapper: [GPU PLM] Crash after enabling Auto at the end of Bake - OpenCLRenderLightmapBuffers.HasBakingBuffers() (1389093)

  • Progressive Lightmapper: [GPU PLM] Crash due to out of bounds access violation in PowerSampling after enabling auto mode at the end of bake on AMD GPU (1379762)

  • Scene Management: Crash with "Transform::InitializeTransformHierarchyRecursive" when using undo after swapping Prefabs (1400170)

  • Scene/Game View: Camera resolution is set to default when opening the Editor (1378321)

  • Scripting: Only some assemblies fail to be loaded when assembly name does not match the file name (1345099)

  • Shadows/Lights: Scene is brighter in Standalone player if it was open in the Editor at build time (1375015)

  • Terrain: Material keyword APIs don't list keywords when using a newly imported SpeedTree (1398133)

  • uGUI: Extra OnEnter and OnExit event calls when hovering over UI elements (1394226)

  • uGUI: Prefab is glitchy while editing in Prefab Mode when parent Canvas Render Mode is set to Screen Space - Camera (1394756)

  • Vulkan: [Editor] The Scene's GameObjects textures are seemingly random and change colours depending on the Scene's Camera pos. (1337772)

  • Windows: Editor crashes or freezes with 'Copying file failed' error when importing a file from WinRAR Archiver (1325310)

  • XR SDK: [XR][Linux] Scene View doesn't render when opening new AR or VR Template project or pressing "Show Tutorials" (1362435)

2021.2.11f1 Release Notes

Improvements

  • IL2CPP: Added support for Il2CppSetOption attribute on structs and assemblies.

API Changes

  • Particles: Added: There is a new version of GetTrails that doesn't allocate any garbage. (1394062)

Fixes

  • Android: Fixed a Java local reference leak when array is returned when using AndroidJavaObject/AndroidJavaClass. (1374806)

  • Android: Fixed an app crashing when calling Cursor.visible or Cursor.SetCursor many time during a frame. (1380363)

  • Animation: Fixed a crash when modifying an animation override controller which was in use during a state machine enter / exit behavior callback. (1346587)

  • Build Pipeline: Fixed an issue where subsequent builds or manually-selected script only builds could result in incorrect code stripping. (1388491)

  • Core: Fixed incorrect handling of C#'s readonly keyword in the JobsDebugger. (1367166)

  • Editor: Fixed a Null reference exception on enabling constrain proportions scale for a freshly created Rect Transform object. (1399997)

  • Editor: Fixed an issue where selecting a scene template modified its dependencies.

  • Editor: Fixed an issue where keyUp events were never received in the macOS editor under playmode. (1380143)

  • GI: Fixed an issue where environment lighting from an additively loaded scene would be ignored, when unloading the base scene, and that scene contains a light probe group. (1324966)

  • Graphics: Fixed a particles flickering issue on metal. (1375960)

  • IL2CPP: Implement the internal SetLastWin32Error method. This is used in the CriticalHandle implementation and can cause problems for libraries like Mono.Data.SqlLite. (1379079)

  • IL2CPP: Fixed "Attempted to lookup type that hasn't been created" error when building a UWP project. (1390521)

  • IL2CPP: Fixed an IL2CPP crash caused by High managed code stripping producing invalid IL. (1358995)

  • IL2CPP: Fixed an issue where the Visual Studio Build Tools installations was not detected nor used.

  • iOS: Fixed an issue where the et On Demand Resources setting in XCode project was not always set to the value in Unity Player Settings. (1379736)

  • Kernel: Added additional checks to FileUtil.DeleteFileOrDirectory to fix unintentional deletion of project assets directory. (1382446)

  • Package Manager: Fixed an issue where Unity terminated with error code 0 when an exception occurs while importing a package in bach mode. (1375776)

  • Particles: Fixed an issue where there was incorrect Collider information for GetTriggerParticles, in the case where there were null colliders in the Trigger Module list. (1356510)

  • Physics: Fixed an issue where re-parenting an inactive 2D Collider using a CompositeCollider2D on the target hierarchy would not use the composite. (1386399)

  • Prefabs: Fixed a RootGameObject detection issue for missing Prefab instances to avoid creating placeholders.

  • Prefabs: Fixed a scene saving for scene backups issue when entering PlayMode to re-enable EnterPlay mode with missing Prefab instances in the scene. (1379408)

  • Prefabs: Fixed an error that was thrown when merging changes made to a Prefab into a Nested Prefab with co-dependant components. (1362574)

  • Profiler: Fixed "Call Stacks" toggle in Profiler Window enabling callstacks capturing in connected Players. (1377934)

  • Serialization: Fixed an issue where error message did not include filename when serialized map in a YAML file was badly formed. (1374218)

  • Shaders: Added the number of skipped shader variants to the shader compilation log output. (1389276)

  • Shaders: Fixed a misleading comment in UnityCG.cginc. (1374639)

  • Shaders: Fixed an issue where the shader name was not added to the error description when failing to compile or link GLSL shaders. (1378687)

  • Shaders: Fixed OOM crash when preparing shaders with a large amount of variants (100M+) for compilation. IPreprocessShaders now processes not more than 1M variants at a time. (1388530)

  • Shaders: Fixed the output of "Compile and show code" button being capped to 2GB on Windows. (1378000)

  • UI Toolkit: Fixed a UIDocument sort order issue when multiple ones had the same sort order value but some of them were disabled. (1378182)

  • UI Toolkit: Fixed an issue where the icon in the Uxml preview header would not open the uxml file in the IDE (UI Builder).

  • UI Toolkit: Fixed an issue where the Open With IDE context menu was trying to open the uxml in the builder instead of opening it in the IDE (UI Builder). (1368373)

  • VFX Graph: Fixed a collision with depth buffer issue when using a physical camera. (1344733)

  • WebGL: Fixed a MSAA effect issue for WebGL. (1377547)

  • WebGL: Fixed a template issue when quotation marks were used in company name or product name. (1370946)

  • WebGL: Fixed an issue that prevented PlayerSettings.WebGL.emscriptenArgs options from being passed to the build. (1368914)

  • WebGL: Fixed an issue with the creation of external debug symbols. (1378286)

  • Windows: Fixed an issue when building generated IL2CPP C++ code with Visual Studio 2022 Unity did not correctly recognize it as "Visual Studio 2022". (1378085)

Package changes in 2021.2.11f1

Packages updated

Packages added

Changeset:
e50cafbb4399

Third Party Notices

For more information please see our Open Source Software Licenses FAQ on the Unity Support Portal

We use cookies to ensure that we give you the best experience on our website. Visit our cookie policy page for more information.

Got it