Skip to content

v0.116.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 03:38
· 68 commits to master since this release

Added

  • A stop clip can land where the character stops. An animator state gains distanceParameter: a float saying how far the character has left to go, and the state is played by it, standing each frame at the point of its clip with that much root travel left, so however hard the character brakes its feet come to rest where it does. Under distanceFloor world units it plays on by time, and it never runs more than distanceMaxPace times its own pace in a frame. For such clips a model's import settings gain Root Motion, From the Skeleton, Its Own Pace, which takes the top joint's course key by key instead of at a steady rate, so a clip that brakes keeps its braking in the root track. The animator's details now show every setting a state and a constraint take, the stride and orientation warps' ease among them.
  • An animator transition can blend by inertia instead of crossfading. A transition's blend, or a controller's transitionBlend for every transition that does not say, takes inertialize: the state entered plays at once, and each joint's offset from where the last frame left it is carried down to nothing over the transition's duration along a curve that starts with the speed the joint had and arrives with none. The character is never in two motions at once, so a foot does not skim the ground between two gaits' footfalls. It applies to the base layer. On the character it was made for, starting to walk slid a planted foot 3.9 units against 17.8 crossfaded. A stride warp also no longer lets a stride back out to the clip's on the last frame a character moves before it stops.
  • Luban builds a client and a server from the same tables. The project's Luban settings take a list of outputs: each names a target of luban.conf (client, server, …) and the folders its code and data are written to, so a game whose server reads tables the client never ships gets both from one run. Settings → Configuration tables shows them as a table with a row per output. Luban runs once per output and writes nothing until every one has worked; a project written with one target, code folder and data folder reads as that one output.
  • WeChat and Douyin mini-games can run 3D physics with Jolt or PhysX. Exports package the project's selected 3D solver and add Box2D when the game also uses 2D physics. With engine subpackaging enabled, each optional engine binary downloads on first use and stays outside the main-package budget. The exporter names the matching build command for a missing or Web-only solver. A targeted build restores missing files and syncs its selected runtime to the editor.
  • A character going a different way from the one it faces runs with its legs that way. An animator's constraints gain Legs follow movement (orientation-warp): the animator measures the angle between the way the character goes over the ground and the way its motion travels, and the constraint turns the hips by it (within maxAngle, 90 degrees by default) and the listed spine joints back by as much, so the chest keeps facing where the character faces. It matters when facing and movement part: a body that turns slower than the way it goes, strafing, aiming. Measured on a run with a body turning at 60 degrees a second, a planted toe slid 50 units through two turns with it and 69 without.
  • A character can cover ground by its animation's own travel, so its feet do not slide. Three pieces, each usable alone. A model's import settings gain Root Motion, From the Skeleton: for a rig with no root above the hips, each clip's travel over the ground is taken out of the top joint and stated as a root track at one steady rate, and a clip that ends where it began is left alone. An Animator gains Rig, the entity whose children its clips pose, for a character that carries its model as a child. A Third Person Controller gains Root Motion: the stick then chooses the heading and the speed it asks the animator for, and the gait that answers is what moves the character. Two things change for what was already there: a root track now covers ground in proportion to the scale of the entity it is the root of, and an imported clip whose first key is a frame in starts at that key instead of standing still before it on every lap.
  • A character moved by its controller can fit its strides to the speed it is going. An animator's constraints gain Stride fits speed (stride-warp): each frame the animator compares how fast the character went over the ground with how fast the playing motion's root track travels, and the constraint draws each foot in or lets it out along the way the character is going, about the hip, by that ratio (held between minStride and maxStride, 0.5 and 1.6 by default). The foot keeps its height and the way it faces. With it, a character can be moved by velocity, so the stick decides how it speeds up, brakes and turns, and its feet still keep pace while it does.

Changed

  • The animation controller editor shows a graph you can read and the details of what you picked, and follows the running game. Parameters and layers sit on the left, the state graph in the middle, and the details of the selected state, transition, layer or constraints on the right, in place of one long column of everything. Wires no longer carry their conditions as text that piled up where wires crossed: each has a round mark with an arrow, several transitions between the same two states are one wire whose mark counts them, and the conditions show on hover (a toolbar box writes them on the wires again). A 1D blend is drawn as its speed axis, with each motion's weight; a transition shows its duration, which could not be set here before, and draws what a crossfade and an inertialized blend do over it; constraint joints are picked from the rig's tree instead of typed as paths. While the game runs, the parameters show their live values and can be set, the state being played fills a progress bar, and a bar under the graph names the state and the blend weights. AnimatorControllerAPI.debugView(entity) is what it reads.
  • A Third Person Camera now holds rigidly on its character by default. It trailed at a Follow Damping of 12, and a character moved on the fixed step jolted against the world on every frame the step did not run, which on a display faster than 60 Hz is most of them. Follow Damping is now 0 unless a scene sets it, and is shown with the camera's other settings rather than among the advanced ones. A stride warp also measures the character's speed from the time since it last moved, so on such a display its strides no longer flicker between none and double.
  • The remaining documentation chapters are rewritten as reference pages, in English and Chinese. Gameplay (2D and 3D physics, navigation, AI), Scripting (input, networking), Core Concepts (screen, app lifecycle), Assets (models, audio, memory), Performance (profiling, quality levels), Publishing (package size, playable ads, web portals, native code, OpenPaaS) and Extending (contribution points, project native modules) are split into sub-chapters where a page covered several topics; old addresses redirect to the new pages. Fields are listed with their types and defaults, and statements were checked against the code and corrected where they had drifted — among them the 3D collider and character defaults, implicit static 3D colliders, hierarchy writes and sibling order, the headless app's plugins, the build dialog's compression options, where target settings live, desktop runtime templates, quality-level defaults and the number of built-in primitives.
  • The World and Animation documentation is rewritten as reference pages, in English and Chinese. Tilemaps and Particles are now groups of pages, Animation gains Sprite Animation, Tweens, Animator, Animation Events and Layers, IK & Root Motion pages, and Timeline is a group of Sequencer, Tracks and Playback pages; old addresses redirect to the new pages. Component fields are listed with their types and defaults, and statements were checked against the code and corrected where they had drifted — among them tween loopCount, Spine setEntityProps and shared mix durations, the Preview FX location, GPU trail memory, force fields on GPU emitters, the collision layer's grid and physics material, and prefab override fields.
  • Native games using QuickJS load scenes with sequential entity IDs faster. The runtime update speeds up entity lookups during validation and loading for both 2D and 3D scenes. Games packaged with older bytecode reuse the device’s updated cache after the first launch.

Fixed

  • Asset labels now work from editor Play through packaged games and single-file playables. Add labels to an asset’s .meta to ship it with its dependencies. Loading a label mounts its subpackages and returns a bundle that can hold textures, fonts, meshes and lighting together. Changing only a label in a hot update preserves live handles.
  • registerCondition accepts a condition spec. The registry has taken { check, touches } since conditions could declare what they read, but the exported registerCondition only typed a bare predicate, so TypeScript refused a spec the runtime would have stored. It now takes either form, like registerAction.
  • The animation controller editor now exposes its controls to keyboard and screen reader users consistently. Transition choices announce their selected state, joint removal names the joint, and the parameter row reveals its remove button on keyboard focus. Graph labels and controls follow the editor’s shared type, colour and spacing settings.
  • Compressed atlas pages now ship the mip levels and colour space their images request. Disabling mipmaps omits the smaller levels from the package. The encoder averages sRGB artwork in linear light, preserving brightness at a distance. Images marked Data and 16-bit PNGs in atlas folders use the lossless texture cook. Data textures also sample as linear when older metadata still has sRGB selected.
  • Automatically packed sprites and UI images keep their texture import settings. Pixel art can use nearest filtering alongside smoothly filtered artwork in the same atlas folder. The build groups compatible images onto each page. Existing packages with mixed settings can share the page bytes while drawing each frame with its own settings.
  • The audio Compress tooltip no longer tells you to turn it off for loops. It said MP3's encoder delay broke seamless loops, but the export has recorded each clip's real length and played it from past that silence since 0.104.1; the tooltip now says so.
  • Web builds can show a mesh using a small preview of an imported KTX2 texture before downloading the full texture. UASTC and ETC1S previews preserve the mip levels stored by the artist. When the smaller levels are missing, the exporter generates a preview from the texture, including when project texture compression is off.
  • Automatic atlas packing preserves filtered sprite edges. The packer fills the padding around each image using its wrap and transparency settings. Bilinear filtering now picks up the source edge colour and opacity, removing dark fringes on scaled sprites and UI images.
  • Restarting a world while a system runs keeps the replacement 2D or 3D scene intact. Queued spawns, component edits, hierarchy changes and resource writes expire with their original world. A restart during a despawn also retires the remaining commands from a compiled system. Unpublished spawn reservations return to the outgoing registry, and retained command builders return an invalid entity. Overlapping asynchronous runs submit their own commands when each run finishes.
  • Compiled systems in packaged WebAssembly games now send and receive project events through the same bus as scripts. A sprite or mesh keeps moving correctly when reading a resource or event grows its component pool. Resource and event fields also retain their values if the WebAssembly heap grows during a read or write. Web and native hosts run the script for a frame when a required resource mirror is unavailable and retry compiled execution on the next frame.
  • Rebuilding into an existing folder removes obsolete compiled system modules. Web, minigame and native exports now keep the modules selected by the current build and preserve custom files in the package’s aot folder.
  • KTX2 textures use their authored filtering and wrapping on WebGPU and native targets. Pixel art keeps nearest filtering when magnified and when sampled from smaller mip levels. Turning off mipmaps uploads only the base level, and textures decoded to RGBA use the same sampling settings.
  • Contact Shadows no longer speckles distant ground seen at a low angle. Far off, the depth buffer cannot tell a surface from the one just behind it, and a ray skimming distant ground found blockers in its own rounding, drawing a band of dark dots short of the horizon. The effect now fades out between Fade Start and Fade End (15 m and 30 m by default, both new settings), and its test for a point lying in front of a surface allows for the depth buffer coarsening with distance.
  • Contact Shadows no longer draws a hatch on the ground beside a wall or a crate. A ray that met a surface seen edge-on, or entered a thick thing through a side the camera does not see, was only counted when a step happened to land in the thin layer under the surface, so the shadow came out as a pattern of the march's own jitter. The march now looks for that layer between two steps that fall on opposite sides of it, and the shadow beside a thick blocker is whole.
  • Living entities now release animation clips and rig avatars when their last field stops using them. Persistent entities, standalone scene entities and prepared prefab instances give back their references after a field change or component removal. A second field using the same asset by path or UUID, another instance, or an explicit acquisition keeps it available.
  • Persistent entities keep their loaded audio and prefabs across scene changes. An audio source can reuse its buffer even with a zero-byte cache budget. Tooltips and breakable objects can instantiate their prefabs without reading the file again. Clearing the last field releases the entity’s hold. Headless hosts can also load these files and JSON before initializing graphics.
  • Going from a walk to a run blends the stride instead of jumping to it. A blend whose mix changed read its clips at another point of their cycle, so the legs jumped a step; it now keeps its place in the cycle. Its root motion is read over the stretch of each clip the pose was, so the feet stay planted through the mix. A blend stop gains Sync phase (phase), the point in its own cycle a clip is at when the blend's starts, which lines up two gaits that start on different feet. And a Third Person Controller walking by its animation brings the speed it asks for up at its own acceleration, so a gait changes over the time the character takes to reach it.
  • Tilemaps keep every atlas at its imported size when a 3D mesh shares the texture. Painted maps now calculate tile ranges from the full image, and Tiled layers keep secondary atlases sharp. Bitmap fonts, animation frames, skeleton atlas pages and environment maps use the same loading rule. Custom loaders can request it with assets.acquireTexture(ref, flipY, 'imported'). Mesh streaming resumes after the last imported-size reader releases the texture.
  • Mesh material instances now get build-time texture previews for the samplers they inherit. Web export reads the built-in renderer's texture-density declarations and resolves each sampler relative to the material that supplied it. An override selects the instance's texture for its preview. Automatic compression in the editor and in exports uses the same result.
  • Scenes can use assets from a lazy subpackage on first load. Sprites, meshes, animation pages and media now wait for their files when opened directly. Concurrent loads share one mount, and a refused package can be retried immediately. In editor Play, loading a scene asset again by label or group reuses its handle. Hot updates verify files in their destination package before switching the running game to the new manifest.
  • Updating a live sprite or mesh field keeps the original asset available to components that declared it separately. Scenes, persistent entities and prefab instances can keep drawing an independently held texture after the field switches to its replacement. Intermediate field versions are released, including when successive mesh generations use the same native handle.
  • Running scenes follow renamed and restored materials and textures. A sprite or mesh keeps drawing its current asset while its record is absent. Restoring the same UUID updates its live fields, even if the file moved. An asset that subsequently takes the old filename keeps its own handle.
  • Packaged games now apply texture sampling and nine-slice changes during a hot update. A running sprite or textured mesh picks up the new settings even when its image file is identical. The download estimate counts only files that need verification. With update persistence enabled, the next launch uses the saved settings.
  • Connect AI Tools no longer lists VS Code under Other tools. VS Code connects with one click in the list above; the English label named it again among the tools that need their config copied by hand.
  • The headless minigame launcher can render textures from a separate CDN origin. The browser host requests images with anonymous CORS so the engine can read their pixels when the CDN allows the game origin.
  • A mini-game export no longer ships a project module's web build. For a mini-game host other than WeChat, a project's native module was looked up in a directory named for the vendor, then wechat/, then web/ — and the web glue expects WebAssembly, which a mini-game host does not have, so the package failed on the device. The web build is no longer a fallback for any mini-game host; with neither a vendor nor a wechat/ build the module is reported as unavailable.
  • Simultaneous exports of one project keep their own compiled systems. Web, minigame and native packages can finish copying their modules while another export builds different systems or targets. A failed link preserves the last successful build. Repeated Windows exports with MinGW can reuse the same DLL bytes.
  • The GPU Simulation tooltip says what still runs on the CPU. It said sub-emitters, trails and physics collision were CPU-only, but GPU emitters run sub-emitters and trails; only Physics2D and Physics3D scene collision stays on the CPU, and the tooltip now says so.
  • Sprites, tilemaps, bitmap fonts and animation frames use their imported texture dimensions while editor compression is pending. A mesh can display a smaller preview first. When a reader needs the original pixels, both readers see the full image on the same handle. Device recovery restores the requested size.
  • Localized labels keep the same translations across scene switches and loading speeds. Scenes and plugin startup share one project-owned copy of each table. Discovered files follow logical path order and explicitly listed tables take precedence in their declared order. Hot updates replace the affected table, including removed keys. A failed update keeps the last working translations. The asset plugin can load tables on headless apps and releases their scene assets on shutdown.
  • Systems can safely finish a query after a scene restarts. A query from the previous world now returns no entities and discards pending writes, even when the new registry reuses an entity number. Interpreted and compiled systems refresh their component access on the next run. Overlapping runs keep their own mutable rows, iteration guards and removal history.
  • An editor tab left open in front of the scene view opens with its content. Reopening a project whose layout had an asset editor (an animation controller, say) as the front tab of the scene's group showed that tab empty until another tab was clicked and back; it now shows its editor at once.
  • An editor preview can update or close its labels while another scene keeps its own text. Screen UI and world-space text now keep their glyphs, atlas batches and redraw history with their scene, including when two scenes use the same entity number.
  • Rich text keeps inline images when it wraps and draws the correct atlas frame. Images referenced in scene and prefab markup ship with the build. Replacing an icon or unloading its label releases the texture when its last user is gone. Single-file playable builds share one texture across frames on the same atlas page.
  • Scenes now preload the assets declared by project components and terrain layers. Missing files appear in scene loading reports. Persistent entities, entities adopted by another scene, and prefab instances keep their declared lists of assets until destruction. Components can also declare a scalar JSON data field. Named registry entries that share a packaged file stay independent across scene, group, label and explicit loads. Terrain releases its temporary layer reads after packing.
  • Prefetching a scene leaves the live 2D and 3D physics settings alone. The first scene to publish with a solver chooses its world settings. A discarded preload or an unloaded scene gives back its acquired assets while its physics module is still in flight. Other scenes can use the shared download or start immediately with their own ready module. Custom scene loaders can use ctx.signal to cancel their own work on retirement.
  • Closing or replacing a world during scene loading preserves entities in the new scene. Interrupted loads release their partially spawned entities and acquired assets. A reopened preview keeps its sprites and meshes even when the new world reuses the same entity numbers. The new world can start its physics subsystem while the previous world is still waiting for its module.
  • A running game can reclaim a replaced physics module host and its cached modules. Scenes that return to a previous host while its download is still in flight share that download.
  • Sprites and meshes keep their own textures and materials when two assets ship as one file. Each texture uses its own sampling and nine-slice settings. Updating one asset changes only the objects that use it. The package still stores the shared file once.
  • Updating a mesh, font, environment or light probe volume now changes only objects that reference that asset. Two assets with identical cooked content can share a download and still update independently. Asset groups now preload meshes and baked lighting. Bitmap fonts resolve their metrics and pages from the authored location and release their page textures when the last user releases the font.
  • Re-exporting a sprite keeps texture previews still used by 3D meshes. Packing and cleanup account for shared files, packed assets and independently fetched texture previews. Replacing the last reference removes an obsolete preview. Build size reports charge each file to its delivery group.
  • Spine and DragonBones characters stay in their own scene when a game and a preview share a renderer. A character on a screen-space Canvas appears when its assets finish loading or it is enabled again. Closing a preview releases its drawing callbacks and cancels pending character bindings.
  • Sprite animations keep their frame sizes and crops in automatic atlases. Image sequences, sheet cells and cropped frames draw the same region in Play and in exported games. Texture paths relative to the clip also resolve after content-addressed packing.
  • Spine and DragonBones keep each atlas page's texture import settings when loaded outside a scene. Pages backed by the same file can use different samplers. KTX2 pages use the device's supported compression and recover with their original settings after a graphics-device reset.
  • A character in the 3D Starter no longer falls through the ground 40 m out. The ground was drawn 400 m across while its collider was 80 m across, so a character running off in any direction dropped through ground it could see. The collider now covers all of it.
  • A character in the 3D Starter no longer has dark blue lines under the nose, lips and jaw. The template's sky light was tinted blue on top of the blue the sky already gives, and its ground gave back a fifth of the light, so every surface facing down was lit dark navy. The sky light is white now and the ground gives back 0.4, so those surfaces take the ground's own colour.
  • An imported character no longer trails a thin line from one vertex left behind. Some exporters add a joint beside the skeleton that no clip animates and bind a vertex or two wholly to it; once the character moved, each stayed where the joint was and its triangles were drawn as a sliver across the screen. Importing a model whose clips animate the rest of its skin now binds such vertices as the vertices sharing a triangle with them are, when the joint holds no more than a hundredth of the mesh, and says so in the import warnings.
  • Streamed KTX2 textures retain their colours down to the smallest preview. Native builds now honour the requested size, and WebGPU draws a preview in RGBA when its size cannot form whole compression blocks. Built-in transcoders skip larger mip levels when loading a preview.
  • Hot updates now verify streamed texture previews before activating a build. The download plan counts each shared file once, including a replacement preview for an otherwise identical texture. Remote meshes can load their small preview from the CDN, and the disk cache protects the previews needed by the current and rollback revisions.
  • Restarting a 2D or 3D world from a destruction callback preserves the new scene hierarchy. The outgoing world finishes its callbacks and releases its subtree before detaching. A replacement sprite or mesh can immediately reuse an entity number, take a parent and keep its assets. Restoring an editor snapshot stops if a callback opens a different world.
  • Sprites, tilesets and project components get the imported texture resolution when they share an image with a mesh. Scene preload restores a streamed preview on the same handle before publishing the scene. Live texture and material fields follow their declared resolution requirements, including textures inherited from a parent material. Mesh-only scenes can still start with a smaller image.
  • Web games with compiled systems now start with threaded rendering enabled. A threaded Web export includes compiled systems for both shared and ordinary WebAssembly memory. The runtime loads the variant matching the engine the browser started, including when the same package falls back to single-threaded rendering. Newly built modules also identify the manifest they were compiled with, so a mismatched pair is reported at startup.
  • The scene view's marks no longer show through the tab in front of it. With an entity selected whose children have icons, such as a character's skeleton, opening another editor in the same dock (the animation controller, say) left those icons drawn over it. They now hide with the scene view.
  • Meshes keep their original texture coordinates when automatic atlas packing is enabled. A texture sampled by a mesh, an inherited material or a baked lightmap ships as a whole image, including when a sprite or UI image also uses it. The exporter recognises bindings from prefab variants and instance overrides.