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