Unity Android 2021 Release-Notes

2024-04-15 16:28
文章标签 android unity 2021 release notes

本文主要是介绍Unity Android 2021 Release-Notes,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

🌈Unity Android 2021 Release-Notes

版本更新内容
2021.3.34Android: Google play.core package is replaced with separate plugins including play.asset-delivery 2.1.0 to solve PAD related compatibility problem with Android 14.(UUM-54157)
2021.3.34Android: Improved ANR recovery logic, Unity will try not to exceed ANR threshold (5 seconds) when pausing the application, in case of a failure to sync UI thread with main game thread, Unity will ignore the synchronization and will attempt to continue the application execution. You can also control the timeout for synchronization via UnityPlayerForActivityOrService.SynchronizationTimeout.setTimeoutForAll, an overridden activity java file is required for this purpose. Or perform a call via C# new AndroidJavaClass(“com.unity3d.player.UnityPlayer$SynchronizationTimeout”).CallStatic(“setTimeoutForAll”, 1000);.(UUM-56705)
2021.3.34Android: AndroidJavaObject will correctl follow dispose pattern and will now call Dispose(false) from finalizer, previously it called Dispose(true).(UUM-53674)
2021.3.34Android: Bump Android Logcat package to 1.4.0.
2021.3.34Android: Fixed merged manifest path for permissions event.(UUM-51545)
2021.3.34Android: You can override UnityPlayerActivity.java, by placing the file directly in Unity project, this was accidentally broken with incremental build pipeline.(UUM-57761)
2021.3.33Android: AdmobSDK banner ad disappears when the device goes to the home screen and returns to the application(UUM-57151)
2021.3.33Android: Input device listener processes the callback on UI thread, instead of the Main thread; this was incompatible with GameActivity setup, where Java looper is not present on Unity’s main thread. This change fixed the bug where DualShock4 controller was not recognised after being disconnected and reconnected to certain Android devices.(UUM-52211)
2021.3.33Android: When picking target API level which is not the highest installed API level, Unity will now show a dialog asking if you want install it and will install missing API level upon request, previously Unity would throw an error and would ask you to install API level manually. This new behavior will be available only in non batch mode, in batch mode you would still receive an error, the reason is to avoid potential implicit errors.(UUM-52052)
2021.3.32Android: Fixed an issue where the preserved screen was displayed when using swipe for pop-up view.(UUM-48173)
2021.3.32Android: Fixed build failure when custom manifest with custom activity is used with windowed mode enabled in the manifest.(UUM-48998)
2021.3.32Android: Screen.brigthness will correctly return values on phones like Oppo or Xiaomi, previously the value was sometimes bigger than 1.0.Android: Screen.brigthness getter will adjust logarithmic scale for Android Pie or higher.(UUM-48141)
2021.3.32Android: Setting Screen.brightness will now work correctly, it will be applied via https://developer.android.com/reference/android/view/WindowManager.LayoutParams#screenBrightness, thus system setting ‘display brightness’ will remain unaffected, thus not affecting other applications.Android: Further fix Screen.brightness setter on Xiaomi phones with Android 11 or higher. The minimum screen brightness value will be capped at 0.04, since setting this value lower would default to system brightness setting.(UUM-47926)
2021.3.31Android: Bumped R8 version to a newer version than the ones bundled in tools to support sdk 34.
2021.3.31Android: Fixed a bug related to the “Mute Other Audio Sources” player setting on Android. There were two cases where another app’s audio might not get muted when it should be. This could happen if the other app was started before the Unity app or if the other app was played via the Android “quick panel” after the Unity app was started.(UUM-37753)
2021.3.31Android: Fixed a potential race condition during pause routine, which would cause application to accidentally quit instead of pausing.(UUM-30732)
2021.3.31Android: Fixed AndroidJavaProxy not always finding over private methods.(UUM-44752)
2021.3.31Android: Show the last rendered frame when the application come back from the pause state.(UUM-30881)
2021.3.30Android: Fixed an issue where Android build system was asking for an API level that didn’t exist.(UUM-40891)
2021.3.30Android: Fixed an issue where pause was not processed when onPause() is called right after onResume() is called.(UUM-23247)
2021.3.30Android: Fixed value of Android/Vulkan specific shader constant UNITYDISPLAYORIENTATION_PRETRANSFORM when “Apply display rotation during rendering” is enabled.(UUM-44759)
2021.3.29Android: Fixed crash when using Optimized Frame Pacing combined with Vulkan native rendering plugins.(UUM-36096)
2021.3.28Android: Fixed crash when creating pipeline objects for some URP Lit shader on some older Adreno drivers.(UUM-29409)
2021.3.28Android: Fixed errors on new InputSystem when using mouse clicks on Samsung Dex.(UUM-19038)
2021.3.28Android: Fixed R8 mapping output and enforced use of R8 for targetSDK 33 and above.(UUM-889)
2021.3.28Android: Fixed Unity allocator crash when forcing -systemallocator on ARM64 with Android 10/11 or higher.(UUM-40105)
2021.3.28Android: Updated that the text inputfield to appear and disappear with the “Enter” key.(UUM-30811)
2021.3.27Android: Allow different maximum MSAA samples count for different graphics formats.(UUM-25096)
2021.3.26Android: Fix ‘back button’ press on VideoPlayer(UUM-33468)
2021.3.26Android: The ‘Filter Touches When Obscured’ Player Setting is now respected by the new input system.(UUM-31555)
2021.3.26Android: Updated GetDeviceName() API to support SystemInfo.deviceName on API Level 32 or higher.(UUM-32514)
2021.3.25Android: Fixed escaped double quotes when using SetAdditionalIl2CppArgs.(UUM-25447)
2021.3.25Android: Fixed the Troubleshooting button URL upon gradle error.(UUM-30719)
2021.3.25Android: Removed OPENGLES uses-feature element in AndroidManifest of the exported project when not selected in Player Settings.(UUM-32676)
2021.3.24Android: Enabled the display of gradle tasks in progress dialog while building to Android.(UUM-31890)
2021.3.23Android: Added upgrade guide information about mainTemplate.gradle file changes.(UUM-32805)
2021.3.23Android: Enabled the unlock image to be set on each lock rather than only on the first.(UUM-21954)
2021.3.23Android: Fixed an issue where the Accelerometer values are not updated when the ASENSORTYPELINEAR_ACCELERATION sensor is disabled on certain Samsung devices.(UUM-20754)
2021.3.23Android: Fixed shader code generation when using SV_Coverage input.(UUM-26807)
2021.3.21Android: Fixed Screen.SetResolution when using split-screen and Screen.orientation changes.(UUM-19019)
2021.3.21Android: Unity will no longer wrap native crashes into java exceptions on Android, as has been the case, and will correctly forward signals to the previous handlers.
2021.3.20Android: Build will fail, if custom asset pack does not have a valid structure.(UUM-25501)
2021.3.20Android: Fixed an issue where Network.OperationalStatus would always return Unknown for Android.(UUM-19683)
2021.3.20Android: Fixed the Time.deltaTime values so they are now stable on Android devices.(UUM-10244)
2021.3.19Android: Fixed crash if Java proxy is invoked at the same time as Unity is quit.(UUM-15968)
2021.3.19Android: Fixed permissions request hang in pre-marshmellow (Android 6).
2021.3.18Android: Fixed build failing when app bundle option is enabled and output file has no extension.(UUM-10941)
2021.3.18Android: Fixed mapping file output failure when destination folder doesn’t exist.(UUM-9368)
2021.3.18Android: Free persistent surface view when it’s no longer used after activity resume.(UUM-2481)
2021.3.18Android: PermissionCallbacks.DeniedAndDontAskAgain is no longer invoked on Android 11 and later. Use Denied instead on all versions.(UUM-20936)
2021.3.18Android: Warn user if both template file and disabled template file exists in project.(UUM-19338)
2021.3.17Android: Fixed error 'Source directory ‘….’. is not a directory when Symlink Sources option is on.(UUM-884)
2021.3.16Android: Fixed issue where “Multithreaded Rendering” is getting disabled after a few Player builds when it should be enabled according to Player Settings.(UUM-18385)
2021.3.15Android: Do not move files in custom asset packs to src/main/assets, preserve the directory structure as it is.(UUM-15109)
2021.3.14Android: Fixed infinite loop when requesting for runtime permission that is automatically rejected by the OS. (UUM-15923)
2021.3.14Android: Fixed stacktrace on Chrome OS x86_64. (UUM-781)
2021.3.14Android: InputView is not clickable when isInputFieldHidden AND !mConsumeOutsideTouches. (UUM-16292)
2021.3.13Android: Fixed crash if Java proxy is invoked at the same time as Unity is quit. (UUM-15968)
2021.3.13Android: New Input System’s Keyboard class will treat DPad Center button clicks as Key.Enter. Since that’s hold the old input was treating them. (UUM-882)
2021.3.13Android: Used fixed instancing batch size on PowerVR GPUs on Android with OpenGL ES to avoid long compile times in shader warmup. (UUM-739)
2021.3.12Android: Fixed exporting the Android Studio project to a non-existing folder using Editor API. (UUM-1886)
2021.3.12Android: Interaction with PS4 touchpad won’t cause navigational movement when using UGUI together with input system package. (UUM-881)
2021.3.11Android: Fixed orientation issues in laptop mode and tablet mode on Chromebooks. (UUM-782)
2021.3.10Android: Added mono audio output support. (UUM-9205)
2021.3.10Android: Fixed a possible crash on many PowerVR based devices. (UUM-7782)
2021.3.9Android: Fixed an Android audio crash when targeting API Level 31 and running on an Android 12 device. Also fixed an AudioManager.GetStreamVolume exception when targeting API Level 29 or later, which caused the AudioSettings.Mobile.stopAudioOutputOnMute feature to not work correctly, if enabled. (UUM-5652)
2021.3.9Android: Fixed bug when building with IL2CPP and scaler types getting stripped out.
2021.3.9Android: Fixed bug with manual lifetime tests failing occasionally.
2021.3.9Android: Fixed bug with scaler not being initialized with settings from the Editor UI properly when using profiles.
2021.3.9Android: Fixed bug with test provider and settings showing up in Project Settings.
2021.3.9Android: Toggling Build App Bundle in the Build Player Window will now prompt for a save location rather than attempting to use the last build location which would have been the incorrect type of package. (UUM-1692)
2021.3.8Android: Crash when accessing transform component after calling Resources.UnloadUnusedAssets() (UUM-11111)
2021.3.8Android: Fix crash with Vulkan when putting app into background during startup. (UUM-915)
2021.3.8Android: Fix overflow of MotionEvent global references. (UUM-8438)
2021.3.8Android: Fixed building exported Unity project in Android Studio. (UUM-520)
2021.3.7Android: Accept build-tools version 30.0.x instead of strictly 30.0.2
2021.3.7Android: Blind fix for an issue where executing Android SDK tool command would fail with missing java error. For ex., “Unable to locate a Java Runtime”. Even though everything is set correctly in Preferences->External Tools->JDK. Also during the failure, Unity will now print environment variables thus helping identifying such issues in the future. (UUM-2106)
2021.3.7Android: Bring back the ability to initialize UnityPlayer with Context class, this allows Unity to initialize itself from WallpaperService. (1413649)
2021.3.7Android: Fixed high memory usage when uploading 2D array textures using Vulkan on Adreno devices. (1418261)
2021.3.7Android: Fixed overhead of memory allocations in the Vulkan backend for allocation sizes between 128kB and 1024kB. (UUM-5966)
2021.3.7Android: Fixed regression where TouchScreenKeyboard.Open() was not opening. (UUM-2112)
2021.3.7Android: Fixed Screen.safeArea returning wrong height when building Native app with Unity as a Library. (UUM-515)
2021.3.6Android: Allow any file to be selected as keystore (previously only .keystore was supported). (UUM-917)
2021.3.6Android: Fix video with alpha when using Vulkan on some older devices. (1407184)
2021.3.6Android: Fixed a potential app store validation issue related to a QueryIntentActivities() call when initializing the engine.
2021.3.6Android: Fixed crash during low memory kill. (UUM-4811)
2021.3.6Android: Fixed Java local reference leak when AndroidJavaProxy is passed as argument to AndroidJavaObject.Call/CallStatic. (1389252)
2021.3.6Android: Fixed Patch (/And Run) failing on some Android 12 devices with “Permission Denied” or “No such file or directory”. (UUM-2445)
2021.3.5Android: Fixed potential crash during shutdown when using Vulkan. (1423459)
2021.3.4Android: Editor is unable to find JAVA when building an application (UUM-2106)
2021.3.4Android: Added the AssetBundle extension to the list of exceptions for gradle compression of StreamingAssets. (1405245)
2021.3.4Android: Fixed an issue to allow 2 segment package names. (1425979)
2021.3.4Android: Fixed app-freezing when an application changes into multi-window(split-screen) on Chrome OS tablet mode. (1361131)
2021.3.4Android: Fixed Screen.resolutions to return all supported refresh rates, not only 60Hz. (1426366)
2021.3.2Android: Added Initial launch size metadata into AndroidManifest.xml for Chrome OS devices with Android R or higher installed. (1360064)
2021.3.2Android: Fix build failure when you had .androidlib plugin in a package. (1394476)
2021.3.2Android: Fixed a bug with Unity UGUI and UI Elements input fields, where switching languages dynamically and IME functionality was not working. (1395812)
2021.3.2Android: Fixed XR subsystem initialization in case of app bundle + asset packs. (1392895)
2021.3.1Android: Changed: Rename TouchScreenKeyboard.Android.closeKeyboardOnOutsideTap to TouchScreenKeyboard.Android.consumesOutsideTouches. (1400608)
2021.3.1Android: Fixed a crash caused by out of memory on Android when using Vulkan. (1394782)
2021.2.19Android: Fixed an issue where add PlayCore dependency was added to build.gradle file if it was already added to the project as an .aar file. (1374774)
2021.2.17Android: Fixed Android il2cpp build when Windows Display Language is set to Turkish. (1408333)
2021.2.17Android: Fixed stack overflow crash on start up when trying to get device IP. (1409651)
2021.2.16Android: Change boost documentation and timing values in the simulator to reflect the boost mode timing of 10s instead of the previous 15 seconds as it changes on the driver side.
2021.2.16Android: Fixed a frequency change error case (e.g. when boost is activated). Does not retry every frame. Manual retry is required.
2021.2.16Android: Fixed a warning ‘IAdaptivePerformanceSettings.k_AssetVersion’ when building the project. (1373192)
2021.2.16Android: Fixed an issue where the bottleneck profiler colors did not reflect warning states correctly.
2021.2.16Android: Fixed simulator where temperature level and trend would not get updated when thermal action was updated.
2021.2.15Android: Fixed asking for permission for location, webcam and external storage issue. (1363472)
2021.2.15Android: Update some APIs to support the behavior changes of LocationManager in Android 12. (1379467)
2021.2.14Android: Fixed a crash when an app was put to the background before Unity initialiaation and then opened via URL. (1391522)
2021.2.14Android: Fixed a crash when using a custom cursor. (1379249)
2021.2.14Android: Fixed an issue where support for plugin folders with extension .plugin was missing. (1376559)
2021.2.13Android: Fixed a black screen issue when resuming application with native dialog present. (1361532)
2021.2.13Android: Fixed Oculus on-screen keyboard status when not enabled in manifest. (1361663)
2021.2.11Android: Fixed a Java local reference leak when array is returned when using AndroidJavaObject/AndroidJavaClass. (1374806)
2021.2.11Android: Fixed an app crashing when calling Cursor.visible or Cursor.SetCursor many time during a frame. (1380363)
2021.2.9Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.9Android: Fixed an issue where manifest was loosing some permission settings when enabling Split Application Binary for App Bundles. (1388806)
2021.2.9Android: Fixed an issue where the Unity icon was overriding the user specified default icon. (1339828)
2021.2.9Android: Fixed baking reflectionprobes with Vulkan Editor and build target Android. (1344866)
2021.2.8Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.8Android: Fixed “Unable to initialize the Unity Engine” error when building AAB with Split App Binary. (1380909)
2021.2.8Android: Fixed an issue where Compass.headingAccuracy did not report one of predefined values giving some indication on accuracy. (1304067)
2021.2.8Android: Fixed an issue where the Gradle template placeholder DIR_UNITYPROJECT did not. (1346794)
2021.2.8Android: Fixed an issue where the RunInBackground player setting could get modified in the Editor just by switching to the Android platform in the build settings. (1368858)
2021.2.7Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.6Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.6Android: Fixed an issue were Touches were not registered when Samsung S Pen was used to touch screen. (1370814)
2021.2.6Android: Fixed an issue where IBeginDragHandler.OnBeginDrag and IDragHandler.OnDrag were triggered when using Samsung S-Pen. (1364109)
2021.2.6Android: Fixed an issue where the Stylus input was not treated as a touch rather than mouse in the older input system. (1246579)
2021.2.6Android: Fixed ClassNotFoundException errors mentioning classes in com.google.android.play.core.assetpacks package when play.core dependency was not added to the project. (1379427)
2021.2.6Android: Fixed leaked Java local reference issue when new Java object was created. (1366122)
2021.2.5Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.5Android: * Devices might wake up from sleep when in split screen mode.
2021.2.5Android: Fixed an issue where Resource.Load did not work when running universal.apk were created from AAB which was built with Split Application Binary option that was enabled. Note: In universal.apk, Bundletool includes only install-time delivered asset packs, so resource loading can still fail if Unity creates fast-follow delivered core data asset pack. (1363907)
2021.2.4Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.4Android: * Devices might wake up from sleep when in split screen mode.
2021.2.4Android: Fixed performance regression when using MSAA backbuffer with Vulkan. (1351579)
2021.2.3Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.3Android: * Devices might wake up from sleep when in split screen mode.
2021.2.3Android: Fixed a bug related to using a touchpad with Unity UI scroll rects. Touchpad scrolling is much more sensitive now on Android and Chrome OS. (1364582)
2021.2.2Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.2Android: * Devices might wake up from sleep when in split screen mode.
2021.2.2Android: Asset packs located in Packages should be properly supported (1370382)
2021.2.2Android: Fixed bug where Display.systemWidth, Display.systemHeight and Screen.resolutions[] is not updated when folding/unfolding a Galaxy Fold device (1345508)
2021.2.2Android: Fixed crash when using Application.Quit with Optimized Frame Pacing. (1341467)
2021.2.1Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.1Android: * Devices might wake up from sleep when in split screen mode.
2021.2.1Android: Further improve build times, when sequential build is done with no changes in project. Previously Unity was moving apk/aab from gradle project to final location, thus forcing the gradle to rebuild apk/aab on sequential builds, Unity will perform a copy instead now. Our tests show that sequential build times improved by 50%, for ex., dropping from 12 seconds to 5 seconds. (1361602)
2021.2.1Android: Workaround a problem where using logcat would leak pipes on OSX. The underlying problem seems to be with C# Process class, where if you redirect streams and dispose process, the pipes would remain opened. This will be investigated separatly. (1303618)
2021.2.0Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.2.0Android: * Devices might wake up from sleep when in split screen mode.
2021.2.0Android: Added a default texture compression format option to Player Settings.
2021.2.0Android: Added support for building and running Android apps on Chrome OS devices with x86 and x86-64 CPUs.
2021.2.0Android: Added support on Android for split-screen, pop-up and freeform windows.
2021.2.0Android: Changed so users can now include custom asset packs into the build by adding assets to the directory ending with ‘.androidpack’.
2021.2.0Android: When building Android App Bundle with Split App Binary enabled, Unity will create asset packs.
2021.2.0Android: Added a new Android/Chrome OS player setting, “Chrome OS Input Emulation”. If un-checked, this option disables Chrome OS’s default behavior of converting mouse and touchpad events into touchscreen events. This allows an app to implement more complete support for these input devices. Also, fixed a bug with Android/Chrome OS touchpad scrolling.
2021.2.0Android: Added boot-config/command-line switch platform-android-cpucapacity-threshold. This specifies which CPU cores to treat 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.
2021.2.0Android: Added support for custom cursors to Android to support Player Settings and C# functions on Android version 7.0 and later.
2021.2.0Android: Allow low-level configuration of Unity threads (priority, affinity)
2021.2.0Android: Changed the device scanning operation of the Android Extension to be async when receiving an USB device changed event. (1349380)
2021.2.0Android: If a hardware keyboard is available, Unity now uses it within UI systems, instead of always bringing up a virtual, on-screen keyboard.
2021.2.0Android: Made a large part of the Android Build Pipeline incremental which means sequential builds with zero changes are now much faster. That also means Unity no longer creates builds from scratch, but instead updates the files which dependencies have changed. If you use the IPostGenerateGradleAndroidProject callback, note that it might be operating on files which were modified by IPostGenerateGradleAndroidProject from a previous build.
2021.2.0Android: Unity gradle projects now have a new entry in gradle.properties, unityTemplateVersion. Unity increments this property whenever Unity gradle template files change. That way if you build on top of the old folder and the unityTemplateVersion is different, Unity throws an error, saying that you need to update your gradle files or build to an empty folder.
2021.2.0Android: When generating manifest files, there are new files in Library\Bee\artifacts\Android\Manifest, LibraryManifestDiag.txt, LauncherManifestDiag.txt. They contain information about why a specific permission is added to manifest.
2021.2.0Android: Added: Added AndroidJavaObject.CloneReference to enable having multiple references to the same Java object. (1277152)
2021.2.0Android: Added: New APIs to manage fast-follow and on-demand delivered asset packs. The APIs wrap Google’s PlayCore functionality.
2021.2.0Android: Added: TargetDevices player setting, so users can select if they want their Android application to run on all devices, just Android phones, tablets, and TV devices, or just Chrome OS devices.
2021.2.0Android: Allowed Android Player to use Vulkan on GPUs that are currently unknown to Unity on Android 11 or newer.
2021.2.0Android: Changed how Unity checks to see if an obb is compatible with an apk. Both the apk and obb now have unity_obb_guid file inside them and if the contents match between them, Unity treats them as being compatible.
2021.2.0Android: Changed the minimum supported Android version to 5.1 (API 22).
2021.2.0Android: Removed OpenGL ES 2.0 from Auto Graphics API. The preferred API is now Vulkan.
2021.2.0Android: Removed support for putting gradle resources in Assets/Plugins/Android/[res, assets]. you either need to use Android archive plug-ins, Android Library plug-ins, or move those files to Streaming Assets.
2021.2.0Android: Removed the overwrite comment in gradle files and manifest files ‘// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN’. Use templates if you want your changes to persist.
2021.2.0Android: When Auto Graphics API is enabled, Require ES3.1, Require ES3.1+AEP, Require ES 3.2 properties in Android Player Settings are now available.
2021.2.0Android: When you export an Android project, Unity no longer creates a symbols zip package because it was always missing libil2cpp.so symbols. After you build your project manually, zip unityLibrary/symbols package if you want to upload it to Google Play.
2021.2.0Android: Added a new AndroidDevice.hardwareType property, which is set to AndroidHardwareType.ChromeOS if running on a Chrome OS device. This is helpful if an app needs to run Chrome OS-specific code.
2021.2.0Android: Added a warning if making an IL2CPP Android build without Arm64 binaries (1318322)
2021.2.0Android: Added fullscreen flag to manifest to better handle static splash screen. (1310347)
2021.2.0Android: Android: Fix lightmap quality warning text in PlayerSettings. (1337631)
2021.2.0Android: Clamp Android minimum bundle version to greater than 0 (1307476)
2021.2.0Android: Fix high memory usage for textures when uploading textures at runtime using Vulkan (1300900)
2021.2.0Android: Fix rendering errors when trying to use Particle Systems with instancing on devices that don’t support it (1312433)
2021.2.0Android: Fixed Android build failures due to unsupported manifest features when targeting API 23 or below. (1340517)
2021.2.0Android: Fixed artifacts when exceeding geometry working set memory limit on Mali GPUs when using Vulkan GraphicsJobs.
2021.2.0Android: Fixed Build&Run when apk name contains duoble quote. (1323395)
2021.2.0Android: Fixed compatibility with OpenGL ES shaders in asset bundles built with Unity 2018.x or older. (1329702)
2021.2.0Android: Fixed computeBufferStartIndex of ComputeBuffer.GetData being ignored when using Vulkan. (1299902)
2021.2.0Android: Fixed crash during shutdown on Adreno devices when using Vulkan. (1330396)
2021.2.0Android: Fixed crash when using R16 UNorm and similar formats with Vulkan on devices that don’t support it. (1314282)
2021.2.0Android: Fixed incorrect resolution scaling on PowerVR devices when BlitType Auto is used (1287131)
2021.2.0Android: Fixed Patch not working on some newer Android devices due to permission issue. (1343844)
2021.2.0Android: Fixed runtime decompression of ASTC HDR cubemaps on devices that don’t support ASTC HDR. (1323739)
2021.2.0Android: Fixed screen safe area values at startup. (1327752)
2021.2.0Android: Fixed shader compile error when signed bitfieldExtract is generated for ES 3.0 shader target. (1327731)
2021.2.0Android: Fixed shaders with bitfield operations compilation errors on Adreno3XX GPUs.
2021.2.0Android: Il2cpp resources will be extracted during player launch only when needed, for ex., changes in scripts. Previously they would be extracted each time you make a new build from Unity.
2021.2.0Android: Preserve ComputeBuffer data when doing partial updates using ComputeBuffer.SetData (1300424)
2021.2.0Android: Resolved an Android build failure when the Target SDK was set to below 24. (1340438)
2021.2.0Android: Resolved an issue that prevented features such as tessellation and geometry shaders from being marked as supported on Android devices whose driver supports OpenGL ES 3.1 with AEP but not 3.2.
2021.2.0Android: Updated Kotlin version to fix potential compatibility problems in Android Studio. (1325245)
2021.1.28Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.1.28Android: Fixed an issue with a screen safe area values at startup. (1327752)
2021.1.27Android: Sometimes text is not rendered when using OpengLES3 on a Xiaomi Redmi9A device. (1347186)
2021.1.27Android: Disable cut/copy/paste popup that was appearing on the hidden Android inputfield (1317688)
2021.1.27Android: Fixed a crash when using Application.Quit with Optimized Frame Pacing. (1341467)
2021.1.27Android: Fixed an issue related to using a touchpad with Unity UI scroll rects. Touchpad scrolling iss much more sensitive now on Android and Chrome OS. (1364582)
2021.1.26Android: Fixed an issue where Display.systemWidth, Display.systemHeight and Screen.resolutions[] were not updated when folding/unfolding a Galaxy Fold device. (1345508)
2021.1.26Android: Fixed an issue where Java local reference was leaking in UnityWebRequest, VideoPlayer. (1297185)
2021.1.24Android: Allow Android on-screen keyboard dismiss behavior match iOS. (1274669)
2021.1.24Android: Fixed an issue when Input.compensateSensors was set to true, give 45 degree slack for overtilt before changing compass heading. (1186040)
2021.1.21Android: Fixed an issue where a looping, streaming video caused a Unity app to drop frames or freeze, if network latency was really high. (1341573)
2021.1.20Android: Fixed android:exported atribute not set to true for Uniy library activity when target API level is 31 or higher. (1356676)
2021.1.20Android: Fixed cameras with depth only clear flickering or not rendering on Adreno devices. (1314872)
2021.1.19Android: Fixed a crash when using TouchScreenKeyboard with placeholder text. (1347370)
2021.1.18Android: 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.
2021.1.18Android: Fixed a detection issue of big cores on Snapdragon 865 and Snapdragon 888 SoCs. (1349057)
2021.1.18Android: Fixed a long startup on Mali GPUs issue when frame timing stats was enabled. (1316285)
2021.1.18Android: Fixed an issue where a user would have stale touches present after touching the screen with multiple fingers. Previously Unity was incorrectly handling MotionEvent ACTION_CANCEL event, and was only canceling one touch, where in reality all touches must be canceled. (1335140)
2021.1.17Android: Added more complete support for running Android apps on the Chrome OS platform. These changes enable building and running Android on x86 and x86-64 CPUs, now officially supported on Chrome OS devices. These changes also include input-related improvements for Chrome OS.
2021.1.17Android: Add property PlayerSettings.Android.optimizedFramePacing API (1329232)
2021.1.17Android: Bump Android Logcat package to 1.2.3
2021.1.17Android: Fixed a crash caused by uncaught “java.lang.IllegalStateException: The specified child already had a parent” that mainly affects Android 7.x. (1347211)
2021.1.17Android: Fixed an issue in fast swipes where Begin touch event would report starting touch position and End touch event would report deltaPosition and deltaTime since previous event. (1325554)
2021.1.17Android: Fixed issue where Android orientation could not be changed via scripts. (1330535)
2021.1.16Android: Users can include custom asset packs into the build, by adding assets to the directory ending with ‘.androidpack’.
2021.1.16Android: When building Android App Bundle with Split App Binary enabled, Unity will create asset packs.
2021.1.16Android: Gradle Plugin version upgraded from 3.6.0 to 4.0.1.
2021.1.16Android: Gradle version upgraded from 5.6.4 to 6.1.1.
2021.1.15Android: Allow Android Player to use Vulkan on GPUs that are currently unknown to Unity on Android 11 or newer.
2021.1.14Android: Fixed an unresponsive area just above keyboard when “Hide mobile input” was checked. (1305663)
2021.1.13Android: Fixed an issue where there was an incorrect label for Proguard template. (1316757)
2021.1.13Android: Fixed an issue where all microphones reported the same recording state when bluetooth microphone was connected. (1298249)
2021.1.13Android: Fixed compositor error log when using linear rendering on some MediaTek/PowerVR SoCs. (1330183)
2021.1.13Android: Fixed severe disk I/O regression on Android 5.0.x. (1287681)
2021.1.11Android: Bump Android Logcat package version to 1.2.2
2021.1.11Android: Fixed issue where Unity editor does not update gradle.properties file if export destination folder already contains this file. (1308437)
2021.1.10Android: Fixed crash during Application.Quit(). (1315010)
2021.1.10Android: Fixed Time.deltaTime on Android after pause/resume. (1328545)
2021.1.9Android: Fixed crash on startup on Android 4.4 devices. (1331290)
2021.1.9Android: Fixed issue where too large no compress settings list will break apk build procedure. (1272592)
2021.1.6Android: Fixed AutoRotation not working on dual screen devices. (1259295)
2021.1.6Android: Fixed black Unity view after pausing the app when in-app purchase dialog is shown. (1249179)
2021.1.5Android: Fixed freeze when using blend shapes with compute skinning on some devices with Mali G78 GPU. (1298373)
2021.1.1Android: Fixed an issue that causes a “failed to load libMain.so” error when deploying an APK from an app bundle. (1314472)
2021.1.0Android: Enabled use of Android 11 setFrameRate API when Optimized Frame Pacing is enabled and Vulkan is used, similar to OpenGL ES.
2021.1.0Android: Expanded the Create symbols.zip build setting for Android. The options are Disabled/Public/Debugging. Modified the symbols to always have the .so extension. Symbols are included for libil2cpp (if IL2CPP is selected), libmonobdwgc-2.0 (if Mono is selected), libunity, libmain. If uploading the zip package to Google Play Console for automatic stacktrace resolving, use Public symbols. (1288739)
2021.1.0Android: Improved load and reload time for OBBs.
2021.1.0Android: Improved Time.deltaTime consistency for OpenGL ES and Vulkan graphics APIs.
2021.1.0Android: Updated Android NDK to r21d.
2021.1.0Android: Added: Added API level 30 to AndroidSdkVersions enum.
2021.1.0Android: Removed use of QualitySettings.vSyncCount for Android.
2021.1.0Android: Vulkan is no longer preferred over OpenGL ES when using Android 7 and for all Mali Midgard GPUs.
2021.1.0Android: Added a warning if making a signed release Android build without Arm64 binaries. (1289652)
2021.1.0Android: Fixed a compilation error that occurred when using framebuffer fetch on single-channel texture formats. (1261534)
2021.1.0Android: Fixed a crash that occurred when enabling/disabling camera access permission. (1262468)
2021.1.0Android: Fixed a mismatch between deltaTime and unscaledDeltaTime. (1266965)
2021.1.0Android: Fixed a problem with custom Aspect ratio value in manifest file. (1284210)
2021.1.0Android: Fixed an issue where the Build Settings window went black when SDK/build-tools were missing. (1230551)
2021.1.0Android: Fixed crash when using UAV with Vulkan on older Mali devices. (1256902)
2021.1.0Android: Fixed issue where GL_EXT_shader_framebuffer_fetch wasn’t added when fragment method is in an included file.
2021.1.0Android: Fixed wrong caret position inside InputField when quickly typing or deleting text. (1252556)
2021.1.0Android: Modified behavior to deselect ARM64 when switching to Mono, and restore when switching back to IL2CPP. (1281826)
2021.1.0Android: Reduced the overhead of making the GetBigLittleConfiguration() call. (1285344)
2021.1.0Android: Removed gray banner that was displayed for projects built with -nographics enabled. (1199310)
2021.1.0Android: Updated Android Logcat package to version 1.2.1.
2021.1.0Android: Updated the Run Device tooltip on how to access the Preferences menu item. (1213519)
2021.1.0Android: When running Android SDK tool with elevated privileges use JDK bundled with Unity, previous behavior was the SDK tool would use java from PATH env variable, and would fail if there’s no java installed and there’s no java path set in PATH env variable. (1290206)

这篇关于Unity Android 2021 Release-Notes的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/906322

相关文章

Android数据库Room的实际使用过程总结

《Android数据库Room的实际使用过程总结》这篇文章主要给大家介绍了关于Android数据库Room的实际使用过程,详细介绍了如何创建实体类、数据访问对象(DAO)和数据库抽象类,需要的朋友可以... 目录前言一、Room的基本使用1.项目配置2.创建实体类(Entity)3.创建数据访问对象(DAO

Android WebView的加载超时处理方案

《AndroidWebView的加载超时处理方案》在Android开发中,WebView是一个常用的组件,用于在应用中嵌入网页,然而,当网络状况不佳或页面加载过慢时,用户可能会遇到加载超时的问题,本... 目录引言一、WebView加载超时的原因二、加载超时处理方案1. 使用Handler和Timer进行超

Android实现任意版本设置默认的锁屏壁纸和桌面壁纸(两张壁纸可不一致)

客户有些需求需要设置默认壁纸和锁屏壁纸  在默认情况下 这两个壁纸是相同的  如果需要默认的锁屏壁纸和桌面壁纸不一样 需要额外修改 Android13实现 替换默认桌面壁纸: 将图片文件替换frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.*  (注意不能是bmp格式) 替换默认锁屏壁纸: 将图片资源放入vendo

Android平台播放RTSP流的几种方案探究(VLC VS ExoPlayer VS SmartPlayer)

技术背景 好多开发者需要遴选Android平台RTSP直播播放器的时候,不知道如何选的好,本文针对常用的方案,做个大概的说明: 1. 使用VLC for Android VLC Media Player(VLC多媒体播放器),最初命名为VideoLAN客户端,是VideoLAN品牌产品,是VideoLAN计划的多媒体播放器。它支持众多音频与视频解码器及文件格式,并支持DVD影音光盘,VCD影

android-opencv-jni

//------------------start opencv--------------------@Override public void onResume(){ super.onResume(); //通过OpenCV引擎服务加载并初始化OpenCV类库,所谓OpenCV引擎服务即是 //OpenCV_2.4.3.2_Manager_2.4_*.apk程序包,存

从状态管理到性能优化:全面解析 Android Compose

文章目录 引言一、Android Compose基本概念1.1 什么是Android Compose?1.2 Compose的优势1.3 如何在项目中使用Compose 二、Compose中的状态管理2.1 状态管理的重要性2.2 Compose中的状态和数据流2.3 使用State和MutableState处理状态2.4 通过ViewModel进行状态管理 三、Compose中的列表和滚动

Android 10.0 mtk平板camera2横屏预览旋转90度横屏拍照图片旋转90度功能实现

1.前言 在10.0的系统rom定制化开发中,在进行一些平板等默认横屏的设备开发的过程中,需要在进入camera2的 时候,默认预览图像也是需要横屏显示的,在上一篇已经实现了横屏预览功能,然后发现横屏预览后,拍照保存的图片 依然是竖屏的,所以说同样需要将图片也保存为横屏图标了,所以就需要看下mtk的camera2的相关横屏保存图片功能, 如何实现实现横屏保存图片功能 如图所示: 2.mtk

android应用中res目录说明

Android应用的res目录是一个特殊的项目,该项目里存放了Android应用所用的全部资源,包括图片、字符串、颜色、尺寸、样式等,类似于web开发中的public目录,js、css、image、style。。。。 Android按照约定,将不同的资源放在不同的文件夹中,这样可以方便的让AAPT(即Android Asset Packaging Tool , 在SDK的build-tools目

Android fill_parent、match_parent、wrap_content三者的作用及区别

这三个属性都是用来适应视图的水平或者垂直大小,以视图的内容或尺寸为基础的布局,比精确的指定视图的范围更加方便。 1、fill_parent 设置一个视图的布局为fill_parent将强制性的使视图扩展至它父元素的大小 2、match_parent 和fill_parent一样,从字面上的意思match_parent更贴切一些,于是从2.2开始,两个属性都可以使用,但2.3版本以后的建议使

Android Environment 获取的路径问题

1. 以获取 /System 路径为例 /*** Return root of the "system" partition holding the core Android OS.* Always present and mounted read-only.*/public static @NonNull File getRootDirectory() {return DIR_ANDR