Skip to content

Releases: decentraland/js-sdk-toolchain

6.9.0

17 Feb 13:37
843b67a
Compare
Choose a tag to compare

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.


Screen Shot 2022-02-17 at 09 57 04

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

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

04 Feb 14:13
e934804
Compare
Choose a tag to compare

Patch empty scenes with regular empty scenes (remove christmas scenes)

What's Changed

Full Changelog: 6.8.0...6.8.1

6.8.0

19 Jan 18:29
0e2faca
Compare
Choose a tag to compare
  • 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

02 Dec 19:56
aa87701
Compare
Choose a tag to compare

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

27 Oct 18:46
Compare
Choose a tag to compare
  • Fix critical error, request rate limited.
  • Cleaner console logs, with less irrelevant errors and messages

6.6.8

05 Oct 20:20
a9c44f7
Compare
Choose a tag to compare
  • 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

09 Sep 13:46
7f68af2
Compare
Choose a tag to compare
  • fix PictureFrameStyles
  • update kernel and renderer versions
  • visual: fix loading gif in preview mode

6.6.6

01 Sep 18:42
a445d80
Compare
Choose a tag to compare

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