NEW: (#6935) Frustum culling for labels Adds support for frustum culling for label components.
NEW: (#5879) Json encode API function
Added a new function to the json namespace json.encode(tbl)
that can be used to generate a json formatted string from a lua table:
local json_str = json.encode({"test", test_tbl = { 1, 2, 3}})
pprint(json_str) -- prints {"1":"test","test_tbl":[1,2,3]}
NEW: (#6992) Add support for setting / getting mouse lock state Added mouse locking functionality on desktop and web platforms. This is done by using two new API functions:
-- set the mouse locking state
window.set_mouse_lock(true|false)
-- get the currently set mouse locking state
local mouse_lock = window.get_mouse_lock()
Note that for web platforms, you cannot request mouse lock outside of “user interactions”, so to get that to work you can use the html5.set_interaction_listener(callback)
function to request the mouse lock for web platforms.
NEW: (#4653) Slice9 support for sprites Added slice-9 support for sprites. Slice-9 splits up the area of the sprite in at most 9 separate regions to proportionally scale an image (see https://defold.com/examples/gui/slice9/ for an example).
Three new fields has been added:
NEW: (#6859) Added support for glTF models+animations In this update, we’ve added support for glTF format.
The .animationset file format now requires you to select a skeleton. This allows us to keep all our internal bone indices optimized.
:warning: Note that if you save your files with this editor version, it won’t open in an older editor. It is a single line change in the format though, so it’s easy to revert any changed files.
NEW: (#6998) Add interaction listener to html5 namespace Added a new function for setting an interaction listener on web platforms:
html5.set_interaction_listener(callback)
If the callback is set, the callback will be invoked when a user clicks, touches or types in the browser.
FIX: (#7025) Fix issue when bundling for iOS without any native extensions A recent improvement to the Info.plist merge process for native extensions had the unfortunate side-effect that builds without any native extensions failed to install due to strict checks of the Info.plist. This fix solves this issue by removing the merge attribute definition from the Inof.plist file if it still exists when bundling (which it does if bundling without native extensions).
FIX: (#6967) Added SteamDeck controller config
FIX: (#6201) Fix issue with mouse wheel events in HTML5 builds Capturing mouse wheel events in HTML5 builds generated errors in the browser console. This fix ensures that mouse wheel events no longer generate errors.
FIX: (#6964) Fix issue with mouse wheel events in HTML5 builds Capturing mouse wheel events in HTML5 builds generated errors in the browser console. This fix ensures that mouse wheel events no longer generate errors.
FIX: (#7005) Fix json parsing load times for large files This fixes loading of large json files. A file that previously would take minutes now takes a second.
FIX: (#6960) Cursor locked to corner of window for high-dpi screens This fixes an issue when using mouse lock on a high dpi screen. The pointer became locked to the top right corner of the screen which made mouse movement unreliable.
FIX: (#6942) Added spin lock to LogInternal for securing the custom log hook
FIX: (#6749) Remove dependency on MS Visual C++ Redistributable Packages for oggz-validate
tool
This fix replaces oggz.dll
with dependency on MS Visual C++ Redistributable Packages with dll without such a dependency.
FIX: (#6968) Reset state from renderobject Design: https://docs.google.com/document/d/1e18uhDzXUyqJcrwy8_HuwqBHucXFx0o2-VB1Ph1FCcU/edit#
This PR adds:
NEW: (#3380) Speed up Lua debugger Speed up the Lua debugger in places where developer doesn’t have any breakpoints.
NEW: (#3855) Track recent files and allow opening them User-facing changes:
User now can press Cmd+Shift+T
(macOS) / Ctrl+Shift+T
(Windows and Linux) to reopen previously closed tabs. File menu now has a new submenu — Recent Files — that allows selecting a recently accessed file to open/focus on. Also, editor now has Recent Files dialog that allows searching from a larger list of recent files, available using Ctrl+R
(macOS) / Alt+R
(Windows and Linux) shortcuts.
NEW: (#6408) Improve build progress reporting User-facing changes:
FIX: (#6696) Don’t suggest images already in the atlas User-facing changes: When adding images to atlas, images that are already there are no longer suggested since it’s an error to add duplicate images to atlas (but not to an animation).
FIX: (#6689) Bind Shift+Enter to find prev term in console