Skip to content

Releases: decentraland/js-sdk-toolchain

7.1.5

17 Apr 17:07
f6a337a
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.1.4...7.1.5

7.1.4

13 Apr 18:39
3f2952c
Compare
Choose a tag to compare

What's Changed

In unity-renderer new explorer version:

Full Changelog: 7.1.3...7.1.4

7.1.3

21 Mar 15:48
bfd9912
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.1.2...7.1.3
** Explorer Changelog** https://github.com/decentraland/unity-renderer/pull/4677/commits

6.11.15

26 Apr 13:32
0b1885b
Compare
Choose a tag to compare

Releasing a patch because the current latest is wrong (it's a hotfix for an older version).

6.11.14

21 Mar 17:47
0b1885b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.11.13...6.11.14

6.11.13

17 Mar 14:01
e8fdf2d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.11.12...6.11.13

7.1.2

16 Mar 14:11
4c363ec
Compare
Choose a tag to compare

What's Changed (dev)

Full Changelog: 7.1.1...7.1.2

7.1.1

13 Mar 17:27
Compare
Choose a tag to compare

What's Changed

Full Changelog: 7.1.0...7.1.1

6.11.12

09 Mar 15:31
88f96e7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.11.11...6.11.12

7.1.0

07 Mar 13:21
e8aeb07
Compare
Choose a tag to compare

Migration Guide Beta

A scene written using 7.0.5 will need some minor adjustments when migrated to 7.1.0 Below are the changes that need to be considered:

  • Component ids are now a string, instead of a number. Also when defining a component, the order of parameters has been reversed. Now the ID goes first, then the schema.
     // OLD
     export const PainterComponent = engine.defineComponent(
     {
     	myField: Schemas.Number
     },
     1234
     )
    
     // NEW
     export const PainterComponent = engine.defineComponent(
     'PainterComponent',
     {
     	myField: Schemas.Number
     }
     )
  • UI alignment properties have changed types, they're no longer enums, instead special string types.
    💡 Tip: In Visual Studio Code, on each property press Ctrl + Space bar to see a dropdown of suggestions with the allowed values.
  • The PointerHoverFeedback component was renamed to PointerEvents
  • The Billboard component has changed properties. It now only has one BillboardMode property, that takes an enum that sets several different modes.
  • getRealmData() is deprecated. Use getRealm() instead.
  • isPreview() is deprecated. getRealm() now returns an additional preview boolean property to use instead.
  • getParcel() is deprecated. Use getSceneInfo() instead.
  • The albedoColor in a PBR Material component changed from type Color3 to type Color4, to support transparent colors.
  • In package.json, the scripts section must be changed to the following:
     "scripts": {
     		"start": "sdk-commands start",
     		"build": "sdk-commands build",
     		"upgrade-sdk": "npm install --save-dev @dcl/sdk@latest",
     		"upgrade-sdk:next": "npm install --save-dev @dcl/sdk@next"
     	},
  • Loading of texture images from external sources requires adding domain to an allowlist on the scene's scene.json file.
  • When running a preview of an SDK7 scene via the command line, use npm run start and npm run build. Don't use dcl start or dcl build. The Decentraland Editor is encouraged as the defacto way to run scene previews.
  • The orientation of Textures is now flipped on plane and cube primitives. This results in a more intuitive result, as the default orientation of a plane now exhibits an image facing the right way. It is also consistent with how video textures are oriented.
  • Fixed bug with rotating platforms, they now move players that are standing on them.

New features

Additionally, the following new features are now available:

  • VideoTexture is now implemented for playing streamed videos
  • New Schema types Schemas.Vector3 and Schemas.Quaternion. These are useful for defining custom components that store these common data types.
  • New Entity type has been added, it helps with type checking for operations that expect or return an entity
  • New onMouseDown and onMouseUp properties for UI pointer events
  • New Dropdown UI element
  • New Input UI element
  • New Label UI element
  • New texture and textureType properties in uiBackground let you set images on a UI element.
  • New textureSlices property lets you perform 9-Slice stretching of UI textures, to preserve proportions on the corners and margins.
  • Basic materials on the Material component have a new diffuseColor property to apply a plain color to a shade-less material.
  • The PointerLock component allows you to know if the player currently has the cursor locked

What's Changed

Read more