Notas da Edição

Known Issues in 2021.2.0b7

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

  • 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)
    Fixed in 2021.2.0b8.

  • 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)

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

  • 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.
    Fixed in 2021.2.0b8.

  • 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 - Analysis Tools: (Frame Debugger) Clear events constantly appear and disappear (1341163)

  • Graphics Device Backends: CommandBuffer native plugin events hang in the Editor (1308216)

  • 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: 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)

  • 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)

  • Mobile: [Android] Using TouchScreenKeyboard.Open with a non-empty placeholder multiple times causes the app to crash (1347370)

  • 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: Crash on BuildPrefabInstanceCorrespondingObjectMap when overriding nested prefab inside AssetDatabase.StartAssetEditing() block (1324978)

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

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

  • Scene/Game View: Unity crashes when selecting objects in Scene using rectangular selection (1351135)

  • 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)

  • Shader System: Pass.CompileVariant crashes the shader compiler when using a target platform that is not installed (1348875)

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

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

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

  • 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: VideoPlayer not working on some AMD switchable GPUs. (1237818)
    Fixed in 2021.2.0b8.

  • 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)

New 2021.2.0b7 Entries since 2021.2.0b6

Improvements

  • IL2CPP: Add full support for System.Reflection.MemberInfo.GetCustomAttributesData

  • IL2CPP: Updates IL2CPP to use the new bee distribution format.

  • Package: backport com.unity.purchasing.udp@.2.2.2 to 2021.2

API Changes

  • HDRP: Added: Added a better support for LODs in the ray tracing acceleration structure.

  • Shadergraph: Added: Added Sprite option to Main Preview, which is similar to Quad but does not allow rotation. Sprite is used as the default preview for URP Sprite shaders.

  • URP: Added: XR: Added Late Latching support to reduce VR latency (Quest).

Changes

  • Editor: Updated com.unity.cinemachine to 2.8.0

  • Graphics: Cubemap pixel access functions (GetPixel/GetPixels/GetPixels32/GetPixelData & SetPixel/SetPixels/SetPixels32/SetPixelData) now throw an ArgumentException when encountering an error.

  • Graphics: CubemapArray pixel access functions (GetPixel/GetPixels/GetPixels32/GetPixelData & SetPixel/SetPixels/SetPixels32/SetPixelData) now throw an ArgumentException when encountering an error.

  • Graphics: Texture2DArray pixel access functions (GetPixel/GetPixels/GetPixels32/GetPixelData & SetPixel/SetPixels/SetPixels32/SetPixelData) now throw an ArgumentException when encountering an error.

  • Graphics: Texture3D pixel access functions (GetPixel/GetPixels/GetPixels32/GetPixelData & SetPixel/SetPixels/SetPixels32/SetPixelData) now throw an ArgumentException when encountering an error.

  • Graphics: WebCamTexture pixel access functions (GetPixel/GetPixels/GetPixels32) now throw an ArgumentException when encountering an error. Calling these functions before the first frame update will throw an exception instead of returning blank data.

  • HDRP: Moved invariants outside of loop for a minor CPU speedup in the light loop code.

  • HDRP: Various improvements to the volumetric clouds.

  • Shadergraph: Only ShaderGraph keywords count towards the shader permutation variant limit, SubGraph keywords do not.

  • URP: The behavior of setting a camera's Background Type to "Dont Care" has changed on mobile. Previously, "Dont Care" would behave identically to "Solid Color" on mobile. Now, "Dont Care" corresponds to the render target being filled with arbitrary data at the beginning of the frame, which may be faster in some situations. Note that there are no guarantees for the exact content of the render target, so projects should use "Dont care" only if they are guaranteed to render to, or otherwise write every pixel every frame.

Fixes

  • 2D: Fixed dynamic batching for Sprite Renderers and Tilemap Renderers in Individual mode whose batching parameters should match in runtime platforms. (1348082)
    This has already been backported to older releases and will not be mentioned in final notes.

  • AI: Fixed a crash when exiting play mode while a NavMesh asynchronous update call is being scheduled. (1297742)

  • AI: Fixed crash caused by the NavMesh builder code in very rare and specific configurations of the world geometry. (1329346)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Graphics: Fixed a crash when passing in DepthAuto or ShadowAuto into SystemInfo.GetCompatibleFormat. (1343093)

  • Graphics: Fixed an incorrect error check in the BC7 decompressor. (1339809)

  • HDRP: Fixed diffusion profile displayed in the inspector.

  • HDRP: Fixed rounding issue when accessing the color buffer in the DoF shader.

  • HDRP: HD Global Settings can now be unassigned in the Graphics tab if HDRP is not the active pipeline. (1343570)

  • HDRP: Indentation of the HDRenderPipelineAsset inspector UI for quality.

  • IL2CPP: Added support for array values as custom attribute arguments. (1174903)

  • IL2CPP: Avoided possible memory corruption when a generic field is of a type which has an explicit layout, and the generic type has another type with explicit layout as a field. (1337921)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Corrected crash when calling DynamicInvoke on a delegate returned from Marshal.GetDelegateForFunctionPointer(). (1335306)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Correctted the behavior of Marshal.Offset so that it properly accounts for the alignment requirements of fields that occur after a struct field. (1346805)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Fixed rare compilation error on usage of IsInst on a value type. (1328551)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Prevented a crash in the runtime when a managed thread object that has been destroyed is used from a finalizer. (1341024)
    This has already been backported to older releases and will not be mentioned in final notes.

  • IL2CPP: Prevented a required System.Uri constructor from being stripped in Medium or High stripping modes. (1338763)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Mono: Fixed ".Net Ping.Send() throws NotSupportedException". (1329962)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Mono: Fixed "Loading assembly failed. File does not contain a valid CIL image" errors. (1336618)

  • Mono: Fixed FileSystemEventArgs.Name to be a relative path. (1344552)

  • Mono: Fixed issue in the mono web request stack where it would incorrectly wait on the Unity synchronization context for an asynchronous call to complete leading to the request being aborted on timeout. (1338465)

  • Mono: Fixed random crash in mono_thread_get_undeniable_exception. (1308625)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Mono: Fixed regression where a MissingMethodException would be thrown when IsComObject was called. (1346334)

  • Package: (Recorder) Fixed vertically flipped outputs on OpenGL hardware.

  • Package: (Recorder) Perform the appropriate color space conversion for Texture Sampling sources when required.

  • Particles: Update emitter velocity as soon as the property is changed, not on the next frame. (1342626)

  • Physics: Fixed an issue where, when using "Collision2D.GetContacts(List<ContactPoint2D>)", the list size was incorrectly set the same as the list capacity rather than the number of results returned. (1352777)

  • Prefabs: Improved error logging when importing Prefab files. The import errors are now collected and logged as one message instead of individual errors and most importantly the Prefab asset path is made clear to the user. Also clicking the message will frame the Prefab in the Project Browser. Also missing Prefabs will now be logged as an error. (1298338)

  • Scene/Game View: Fixed fading between 2D and 3D modes with overlays. (1339978)

  • Scene/Game View: Improved overlay menu to be enabled/disabled regarding the global activation of overlays. (1337409)
    First seen in 2021.2.0.

  • Scripting: Fixed a crash in UnityLinker while processing the assembly override version of UnityEngine.UIElementsModule.dll. (1328995)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed managed code stripping issue due to reflection in com.unity.vectorgraphics. (1327800)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Scripting: Fixed runtime crashes due to TypeConverter classes missing their default constructor. (1285338)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shadergraph: Fixed a ShaderGraph issue where selecting a keyword property in the blackboard would invalidate all previews, causing them to recompile. (1347666)

  • Shadergraph: Fixed an issue where an informational message could cause some UI controls on the graph inspector to be pushed outside the window. (1343124)

  • Shadergraph: Fixed an issue where SubGraph keywords would not deduplicate before counting towards the permutation limit. (1343528)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shadergraph: Fixed Procedural Virtual Texture compatibility with SRP Batcher. (1329336)
    This has already been backported to older releases and will not be mentioned in final notes.

  • Shadergraph: Fixed ShaderGraph BuiltIn target not to apply emission in the ForwardAdd pass to match surface shader results. (1345574)

  • Shaders: Fixed memory leaks in the shader compiler process when compiling ray tracing shaders. (1352198)

  • uGUI: When a canvas is created manually by the user for a Template element (inside Dropdown), don't override its Sorting Layer. (1343542)

  • URP: Fixed additional camera data help url.

  • URP: Fixed additional light data help url.

  • URP: Fixed an issue with the blend mode in Sprite-Lit-Default shader causing alpha to overwrite the framebuffer. (1331392)

  • URP: URP Global Settings can now be unassigned in the Graphics tab. (1343570)

  • URP: VFX: Fixed OpenGL soft particles fallback when depth texture isn't available.

  • URP: VFX: Fixed soft particles when HDR or Opaque texture isn't enabled.

  • VFX Graph: Blackboard fields can now be duplicated either with a shortcut (Ctrl+D) or with a contextual menu option.

  • VFX Graph: Fixed Soft Particle depth computation when using an orthographic camera. (1309961)

  • VFX Graph: Properties labels do not overlap anymore.

  • VFX Graph: Sticky notes can now be deleted through contextual manual menu.

  • VFX Graph: VFX Graph operators keep the same width when expanded or collpased so that the button does not change position.

Changeset: f7def5121c60