Releases: decentraland/js-sdk-toolchain
6.9.0
What's Changed
- Workspaces: Run a single preview that includes multiple scenes and/or smart wearables
- Debug Tools menu: Located to the right of the minimap, this UI menu is exclusive to preview mode and will expand to include a lot more in the future.
The Debug Tools menu currently includes:
- Current Player position: See the player’s current position at all times, this is often a good reference to position entities
- Bounding Boxes: Toggle the display of bounding boxes on all meshes. This is useful to ensure models are positioned properly within scene limits.
- Toggle the FPS panel on and off easily
Breaking changes
- Functions that fetch data about a player no longer return all the variations of the player snapshots. Now only face256 and body are supported, these in the future will also be deprecated. See https://docs.decentraland.org/development-guide/user-data/#get-player-data
Use
AvatarTexture
instead https://docs.decentraland.org/development-guide/materials/#avatar-portraits. - Deprecated the
dcl export
. To share a scene preview via a link, you can now deploy your scenes to Heroku. These new scene previews are multiplayer and should be a lot easier to maintain long-term, as they run exactly like a local preview, but on a remote server. https://docs.decentraland.org/development-guide/deploy-to-now/
Reference
- build(deps): bump @dcl/schemas from 3.1.1 to 3.5.0 in /packages/decentraland-ecs by @dependabot in #94
- feat: workspaces by @leanmendoza in #89
- chore: bump @dcl/schemas from 3.5.0 to 3.7.0 in /packages/decentraland-ecs by @dependabot in #103
- chore: bump @dcl/unity-renderer & @dcl/kernel by @pbosio in #110
- feat: add feature flag endpoint by @leanmendoza in #111
Full Changelog: 6.8.0...6.9.0
6.8.1
Patch empty scenes with regular empty scenes (remove christmas scenes)
What's Changed
- chore: update kernel and renderer (6.8 patch) by @leanmendoza in #105
Full Changelog: 6.8.0...6.8.1
6.8.0
-
Attach entities to any player’s position (not just the current player)
-
Event when clicking on other players that are also in the scene
-
Customizable events when pointing at an entity, via the OnPointerHoverEnter and OnPointerHoverExit components
-
Change the player’s camera mode when entering an area
-
Get the player’s platform (to know if the player is accessing Decentraland via the browser or the native app)
-
Use AvatarTexture to fetch a player’s portrait, passing their address
-
Fixed bug with animation.play(false), where animations always played from the start
-
Fixed bug with changing camera mode while having entity attached
-
Fixed bug with movePlayerTo(), it sometimes used the world position rather than the scene position
-
Deprecated Camera.instance.cameraMode, the observable should be used instead
-
Fetch requests to external APIs now run on a single thread. This has no effect on how the scene needs to be coded, but all requests done by the scene will be added to a queue and performed one by one.
6.7.0
What's Changed
Interaction
- Global button events are now available for the following buttons:
-
POINTER
(left mouse click on PC)
-PRIMARY
(E on PC)
-SECONDARY
(F on PC)
-JUMP
(space bar on PC)
-FORWARD
(W on PC)
-LEFT
(A on PC)
-RIGHT
(D on PC)
-BACK
(S on PC)
-WALK
(Shift on PC) Docs
New buttons available:
- ACTION_3
(1 on PC)
- ACTION_4
(2 on PC)
- ACTION_5
(3 on PC)
- ACTION_6
(4 on PC)
> Note: Number buttons 1,2,3 & 4 on PC currently control emotes, but this behavior will be changed in the future, leaving these buttons free for assigning to anything that might make sense in your scene.
Manage players/avatars
- getConnectedPlayers() Returns an array with all the players that are currently being rendered in the surroundings
- getPlayersInScene() Returns an array with all the players that are standing in the scene and being rendered
- Player connected/disconnected event: triggers when other players start being rendered / stop being rendered in your surroundings, regardless of they’re on the same scene
- Player walked into scene event: triggers when any player enters or leaves the scene parcels See Docs
- getUserData() now returns additional data about the current player, including
- list of wearables
- bodyshape, color, hair color, eye color
- snapshot images of the avatar in different sizes, bodyshape, color, etc
- a
version
number. Use this if you encounter conflicting data, to know what version is more recent.
- getProfileIfExist() returns data on other players that are currently being rendered, by passing their address. It returns the same data as getUserData(). Docs
Manage realms/islands
- Fetch player’s current island: getCurrentRealm() now returns a new “room” property for the island Docs
- Event when player changes realm or island Docs
Other events
- Event when Video starts/stops/pauses
- Profile changed event: Triggers when current player changes wearables, or anything else in their profile
- Cursor locked event: Triggers when current player presses Esc to release cursor, or clicks on scene to lock cursor again See. Docs
Fixes
- fix: UIIput text now includes the typed string as an input in the OnTextSubmit() function
- fix: When opening multiple tabs in preview, other avatars are displayed consistently across all tabs
- Warnings are displayed in preview if the scene passes any of the limitations
- Remove several unused legacy properties on various components and UI elements
Full list of commits
- feat: add more keyboard events by @pbosio in #31
- feat: add onPointerLockedStateChange event by @leanmendoza in #42
- fix: missing modules declarations by @pbosio in #44
- chore: update renderer version by @pbosio in #48
- fix: UIInputText value update by @pbosio in #40
- fix: update EnvironmentAPI declaration (layer deprecated) by @pbosio in #49
- feat: add event for peer's avatar connected or disconnected by @pbosio in #47
- chore: update kernel and renderer versions by @pbosio in #51
- refactor: rename action buttons by @pbosio in #45
- feat: add /preview-wearables request to mock preview wearables by @leanmendoza in #46
- feat: add onRealmChangedObservable by @pbosio in #50
- chore: remove ItemASsetJson type. by @leanmendoza in #52
- chore: update @dcl/schemas version by @leanmendoza in #55
- chore: remove unused components properties by @pbosio in #56
- feat: add enter and leave scene events for remote user by @pbosio in #53
- update posix version by @leanmendoza in #57
Full Changelog: 6.6.9...6.7.0
v6.6.9
6.6.8
- dependency url params for renderer and kernel https://docs.decentraland.org/development-guide/preview-scene/#debug-a-scene
- fix: entities that are out of bounds are marked in red
- fix: the PredefinedEmote enum supports all new emotes
- fix: invisible UI elements can no longer interfere with clicking or hover hints
- fix: debug panel is now visible again
- fix: enable preview to run via https
6.6.7
- fix PictureFrameStyles
- update kernel and renderer versions
- visual: fix loading gif in preview mode
6.6.6
We’re excited to announce version 6.6.6 of the SDK
This version comes with a lot of improvements to the developer experience!
Improved preview:
- full ui in preview (this also enables you to switch to nightmode, change settings & change aatar wearables)
- use your actual avatar (when using web3)
- persistent avatars when using the PLAYER={string} URL parameter
- surrounding parcels now show the empty parcel contet
- more stable hot reloading
Other:
- additional emotes in
PredefinedEmote
enum, like HAMMER, SHRUG, HEAD_EXPLODE, etc
Fixes:
- UI size is now adjusted when resizing the window
- removed lag on entities parented to the avatar when moving
- fix avatar hiding modifier area in preview