Release notes

Known Issues in 2021.2.0b8

  • Android: Fixed crash when using TouchScreenKeyboard with placeholder text. (1347370)
    This has already been backported to older releases and will not be mentioned in final notes.
    Fixed in 2021.2.0b9.

  • Animation: Animator.WriteDefaultValues does not restore default values when it is called (1344272)

  • Asset Importers: Editor crashes on UnityEditor.Unsupported:IsDestroyScriptableObject when applying changes to a custom asset (1353925)

  • Audio: Crash on AudioCustomFilter::GetOrCreateDSP when recompiling scripts while in Play Mode (1354002)

  • Audio: Crash on AudioMixer_CUSTOM_FindSnapshot when passing null as an argument to FindSnapshot() (1341752)

  • CodeEditors: Crash on stopping debugging (1355156)

  • Customer QA Onboarding: Odin Inspector crashes the Editor when selecting an entry from the Attribute Overview window (1357029)

  • Global Illumination: Crash while sculpting Terrain and Baking Lightmaps (1266511)

  • Global Illumination: [Enlighten] Fatal Error when closing the Editor while Generating Lighting (1354238)

  • Global Illumination: [GPU PLM] Fallback to CPU PLM in CL_INVALID_MEM_OBJECT after switching light color only and rebaking GI (1356714)

  • Global Illumination: [PLM] Baking stalls after starting CPU PLM bake via the lightmapping API with enabled async shader compilation (1331268)

  • Graphics: Graphics: Fix flickering events in frame debugger. (1341163)
    First seen in 2021.2.0a19.
    Fixed in 2021.2.0b9.

  • HD RP: HDRP Template fills the Console with "Shader error...couldn't open include file" messages after building the project (1342989)

  • IL2CPP: [Mono Upgrade] Il2CPP player fails to start on Windows 7 (1340258)

  • Input: Input.GetKey does not trigger when the mouse cursor is outside the Game window (1358134)

  • Input: Touch Input doesn't work in Play Mode when running an Editor on a Touchscreen device (1341159)

  • Linux: Crash on DisableSubMenu when double clicking to close a context menu (1347655)

  • Linux: Fixed regression that caused builds to be 10x slower. (1332772)
    First seen in 2021.2.0a10.
    Fixed in 2021.2.0b9.

  • Metal: Changing Adaptive Resolution Level asks for unsupported texture format which causes Editor crash (1355775)

  • Metal: Performance in Game View is significantly impacted by Gfx.WaitForPresentOnGfxThread when a second monitor is connected (1327408)

  • Mobile: [Android] Build fails when there are 680 or more files in the Streaming Assets folder (1272592)

  • Mono: [Linux] [Mono Upgrade] Unity crashes when detaching the Managed Debugger after hitting a breakpoint (1345784)

  • Mono: [Mono Upgrade] CommandBuffer native plugin events hang in the Editor (1308216)

  • Networking: Profiler/Memory Profiler cannot be connected to Standalone build when Run in Background is disabled (1355728)

  • Packman: User can't easily configure location of both UPM and Asset Store package local cache (1317232)

  • Physics: Crash on mono_jit_runtime_invoke when closing project while having a Physics Material set as default in Physics settings (1356108)

  • Profiling: [Profiler] GC Alloc call stacks have unrelated stack trace lines (1355812)

  • Scene Management: "Error loading the file" and "Duplicate identifier" errors in the Console when importing .anim file (1357369)

  • Scene Management: Redoing Apply nestee prefab crashes Editor (1348899)

  • Scene Management: [Undo] Redoing Apply override to Prefab crashes Editor (1355538)

  • Scripting: Crash on PropertyUndoManager::Flush after recompiling scripts (1352394)

  • Scripting: DomainReloadTests performance tests have regressed due to removal of built-in support for Visual Studio as a code editor (1336648)

  • Scripting: Error CS8035 is thrown on opening a project when using rulesets (1349517)

  • Scripting: Increased Script Assembly reload time (1323490)

  • Scripting: Internal package modules that are not used in a project do not get stripped from player builds. (1332465)

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

  • Serialization: Prefab property override blue line have disepeared from HDRP's custom passes (1348031)

  • ShaderGraph: UI shaders are not rendered in Game View from 2021.2.0b2 (1352225)

  • uGUI: Performance degradation when activating or deactivating uGUI GameObject (1348763)

  • UI Builder: Changes in UI Builder are lost when editing a 2D sprite (1357086)

  • UI Toolkit: [Shadergraph] "Transform" node no longer appears in searcher when typed (1344825)

  • Video: Video player fails to start playing and null handle errors are thrown when running Unity Editor/Build with specific hardware (1237818)

  • Vulkan: Linux Editor using Vulkan crashes at " GfxDeviceVK::EnsureValidBackbuffer" when showing tooltips for ProBuilder buttons (1335846)

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

  • WebGL: WebGL fails building on Windows 7 (1340260)

  • Windows: Mouse Y coordinate is wrong on windowed fullscreen player using a resolution smaller than native with New Input System enabled (1345405)

New 2021.2.0b8 Entries since 2021.2.0b7

Improvements

  • 2D: Improved performance of RuleTile caching

  • Android: Added boot-config/command-line switch "platform-android-cpucapacity-threshold" that can be used to specify which CPU cores are treated as big cores. The cpu capacity is a value in the range between 0 and 1024. A capacity value of 870 yields the same behavior as before the fix for case 1349057.

  • Graphics: Change the Gear icon on the Asset Settings Provider for the more menu

  • IL2CPP: Reduce executable size by reducing generic metadata output

  • Package: Update Addressables to 1.18.15

  • Profiler: Released com.unity.performance.profile-analyzer@1.1.0 with a series of fixed and improvements. More details at https://docs.unity3d.com/Packages/com.unity.performance.profile-analyzer@1.1/manual/whats-new.html

Changes

  • 2D: Allow non-public fields with the SerializeField attribute as custom fields for RuleTile

  • Package: Update Sequences (com.unity.sequences) to 1.0.0.

  • XR: The Oculus XR Plugin package has been updated to 1.10.0.

Fixes

  • 2D: Fixed a bug where clear buffer was executed out of order. (1292637)
    This has already been backported to older releases and will not be mentioned in final notes.

  • 2D: Fixed exception when adding a new Rule when no Rule is selected.

  • Android: Fixed ComputeGrabScreenPos and ComputeScreenPos when using Vulkan "Apply display rotation during rendering". (1340975)

  • Android: Fixed detection of big cores on Snapdragon 865 and Snapdragon 888 SoCs. (1349057)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Android: Fixed long startup on Mali GPUs when frame timing stats is enabled. (1316285)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Android: In case of fast swipes, Begin touch event will report starting touch position and End touch event will report deltaPosition and deltaTime since previous event. (1325554)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Asset Import: Improved loading performances of import settings for models with a lot of animation clips. (1338096)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Asset Pipeline: Fixed an issue where a secondary instance of Unity used for asset importing could appear to have hung when inspecting it in the Activity Monitor. (1331736)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Asset Pipeline: Fixed issue with OnPostProcessAllAsset listing unchanged assets as imported, when leaving safe mode. (1335729)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Editor: Fixed an issue where saving a project from the "Learn" section of the Hub would crash the Windows Editor. (1338299)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Editor: Fixed error message when selecting an audio clip in the project browser. (1345239)
    First seen in 2021.2.0a20.

  • Game Core: Fixed for crash caused by invalid data in resource versioning. (1339469)
    This has already been backported to older releases and will not be mentioned in final notes.

  • GI: Fixed light baking gets stuck in a infinite loop when unloading a light baked scene if you have another scene open. (1337508)

  • GI: Fixedcorruption in Probe baking when lightmap UVs are not provided. (1337226)

  • Graphics: Fixed crash caused by memory error when using Vulkan. (1352796)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Allow blittable, generic value types to be marshaled as delegate parameters. (1348863)

  • IL2CPP: Fixed compiler error calling Enum.GetHashCode with System.Enum arguments. (1354855)

  • IL2CPP: Fixed issue that could lead to builds not re-building when certain files or settings were updated. (1343625)

  • License: Fixed Licensing Client signature check in the Editor. (1349984)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed an AssemblyResolutionException from il2cpp about netstandard that could occur when an assembly contained SecurityPermission attributes. (1311865)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed double-clicking in some cases not opening the correct line. (1300479)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed player crash because data is not generated for in the build. (1327870)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed XmlSerializer not working with managed code stripping when using the mono backend. (1331829)

  • Scripting: No longer print newlines for Debug.Log* variants when StackTrace set to 'None'. (1332622)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Serialization: Fixed UnityEvent not populating function drop down list properly when used with polymorphic serialization. (1314770)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shaders: Fixed caching preprocessor not reporting include dependencies in raw GLSL shaders. (1335707)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shaders: Fixed PassIdentifier being erroneously invalid in some cases. (1348023)

  • Shaders: Fixed scriptable shader stripping always returning False in ShaderKeywordSet.IsEnabled for keywords declared with _local suffix. (1346353)
    *First seen in 2021.2.0a21.*

  • Shaders: LocalKeywordSpace now has an API to get a keyword by name; LocalKeyword has a property to tell, whether it's a valid one. (1347382)
    First seen in 2021.2.0.

  • Shaders: Properties section can now be folded in the Shader Inspector. (1350236)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shaders: Shader keywords are now grouped by whether they are overridable or not in the Shader inspector. (1348900)
    First seen in 2021.2.0.

  • Shaders: Shader keywords are now sorted in error and warning messages coming from the shader compiler. (1348741)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shaders: ShaderUtil now has an API to retrieve an array of local keywords valid for a particular shader stage of a Pass and an API to check whether a given keyword is valid for a Pass or a shader stage of a Pass. (1347380)

  • uGUI: Add the possibility to copy/paste an enum with Mixed Values. (1337671)
    First seen in 2021.2.0a18.

  • uGUI: Fixed a bug with selectable (i.e. Button) where it's not shown as selected when it's re-enabled until selection is cleared manually. (1342519)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Universal Windows Platform: Updated UWP PlayerSettings API documentation. (1325420)

  • Video: VideoPlayer not working on some AMD switchable GPUs. (1237818)
    This has already been backported to older releases and will not be mentioned in final notes.

  • WebGL: Fixed hang on quit of the Unity Editor after a Build And Run of a WebGL project. (1352715)

  • WebGL: Fixed WebGL project build when Exception support is None. (1343976)

  • Windows: Fixed IME composition text duplicating between InputFields due to bugs in 3rd party Chinese IMEs. (977600)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Windows: Fixed Input System failing to detect gamepad if it's connected during splash screen logos. (1328742)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Windows: Fixed Input System failing to detect touchscreen device connected after startup. (1305703)
    This has already been backported to older releases and will not be mentioned in final notes.

Changeset: 3fad0faf7e71