Repository navigation
更多版本日志以及IDE的下载,请前往LayaAir官网:https://layaair.com/#/engineDownload
Bug Fixes
Engine
- Fixed an issue where old nodes retained mask references when Sprite masks were transferred or destroyed, causing rendering and transform calculation errors.
- Fixed an issue where child nodes were not correctly restored to their original rendering channels after disabling
PostProcess2D. - Fixed color artifacts and incorrect boundaries around transparent edges in 2D blur, color, and glow effects by improving premultiplied Alpha handling and transparent-edge sampling.
- Fixed issues where text clipping was not updated according to the actual overflow state. Improved clipping for single-line text, padding, scrolling, and embedded objects in rich text.
- Fixed an issue where the event object's type, target, and currentTarget were not correctly initialized when dispatching events using
Event.EMPTY. - Fixed incorrect handling of directories containing periods and URLs with query parameters or fragments in
Utils.getFileExtension()andUtils.replaceFileExtension(). - Fixed an issue where adjusting the capsule size of the Bullet character controller caused airborne velocity and movement states to be lost.
- Fixed an issue where the Bullet character controller continuously slid down stationary walkable static slopes.
- Fixed an issue where Spine incorrectly called Web rendering interfaces during reset in Native environments.
- Fixed an issue where Spine did not exit its current rendering state before resetting, resulting in residual state data.
- Fixed an issue where Spine 2D bounding boxes did not account for template offsets, causing filter regions to be misaligned.
- Fixed an incorrect material type check in
Trail2DRenderthat prevented valid 2D materials from being used. - Fixed resource release issues involving Sprite ShaderData and Mesh2D meshes, materials, and textures. Also prevented residual rendering caches when Mesh2D rendering components are removed independently.
- Fixed incomplete updates to blend, culling, and depth states in custom WebGPU rendering.
- Fixed incomplete unbinding when WebGPU buffers were bound to multiple attributes, and prevented shared Uniform Buffers from being incorrectly cleared.
- Fixed incorrect spotlight batch culling calculations in WebGPU.
- Fixed issues where renderer bindings, geometry, and cached resources were not properly released when switching VFX resources or destroying VFX. Also fixed frame time states not being reset when playback restarted.
- Fixed interference between skinned mesh sampling textures when multiple VFX instances shared resources, as well as outdated caches after changing meshes or bone counts. Corrected bone index mapping and texture size handling for skeletons with more than 64 bones.
- Fixed incorrect vertex layouts for points, lines, and line strips in VFX additional outputs. Also fixed mesh output face culling settings not being applied correctly.
- Fixed an issue where camera projection parameters were not synchronized in time before culling, causing outdated data to be used.
- Fixed incomplete forwarding of Native video playback controls, duration and volume readings, playback completion events, and error events. Also prevented outdated callbacks from affecting the current playback state after switching videos.
- Fixed an issue where the pure JavaScript pathfinding module could fail when building navigation meshes in Alipay Mini Games with code compression enabled.
IDE
- Fixed mouse wheel scrolling not working in Canvas2D scenes.
- Fixed the Game view not correctly following the Retina canvas settings.
- Fixed parsing errors in class registration decorators when parameters contained nested parentheses, comments, or lengthy content.
- Fixed an issue where the terminal PATH was not initialized when installing the CLI through the IDE, causing Node.js to be unavailable. The installation process no longer blocks other operations during startup.
- Fixed lightmap baking omitting large objects and baking groups affecting runtime batching assignments.
- Fixed issues involving lightmap baking prechecks, breakpoint dependency validation, asynchronous direction map processing, and multi-atlas submissions. Valid lightmaps are now preserved when tasks fail or are canceled.
- Fixed an issue where textures using Repeat addressing were forcibly resized to power-of-two dimensions even when NPOT was set to "None".
- Fixed subpackage file handling in Huawei Mini Game WebGPU publishing, ensuring compatibility with pure 2D projects that do not export the 3D rendering library.
- Fixed incorrect type declarations in the 2D Trail Shader template to ensure consistency with the material types of rendering components.
- Fixed the incorrect default rendering mode in Android Native publishing configurations. OpenGL is now used by default.
- Fixed Spine 2D disappearing after stopping playback and returning to the scene editor.
- Fixed Spine 3D static poses not being displayed when a scene was first opened, and models disappearing when switching to fast rendering during paused previews.
- Fixed Spine 3D objects being unselectable in scene views during editing and runtime previews. Both standard and fast rendering modes are now supported. Materials used by Spine 3D templates also support click-through selection in transparent areas.
New Features & Improvements
-
New: Added support for WebGPU and WebGL + WebGPU dual rendering modes when publishing to WeChat Mini Games. The dual rendering mode automatically selects the appropriate rendering backend based on the capabilities of the runtime environment.
-
New: Automatic atlases and manually packed atlases now support WebP output with configurable image quality. PNG and WebP formats can be selected in both atlas settings and the packing tool.
-
New: Added an Edit Assist toggle next to the Visible property of 2D nodes. When a node's visibility is disabled, the node and its originally visible descendants can still be displayed in the editing canvas and real-time preview. Previously, invisible nodes were forcibly displayed when selected. This behavior has now been removed.
-
New: Added support for configuring TAA (Temporal Anti-Aliasing) in the camera properties panel, with five quality levels and adjustable sharpening intensity.
-
New: Added support for configuring MRT outputs in the camera properties panel. Users can select World Normal, Albedo, and Surface Data outputs, view the actual output layout and configuration hints, and switch between different rendering attachments in the camera preview.
-
New: Added
FogMode.EXP2Standard, a standard exponential squared fog mode. It preserves the rendering effects of the original fog modes and remains compatible with existing projects. -
Improved: The Package Manager now supports viewing dependency relationships, version update history, and release dates. Upgrade availability indicators have been added, and users can navigate directly from dependencies to the corresponding package details.
-
Improved: Automatic text clipping is now enabled only when actual text overflow occurs, reducing unnecessary clipping state changes and improving text batching.
-
Improved: WebGPU binding caches are now centrally cleared at the end of each frame, reducing the overhead of repeatedly scanning caches during resource destruction.