development-guide

Manage dependencies

November 8, 2022
development-guide

A lot of times, your scene might need functionality that is already encapsulated in a reusable library. Using external libraries can make your work a lot easier. You can import external libraries into a Decentraland project and then reference the systems, components, or functions described in these libraries. 📔 Note: Not all Typescript or Javascript dependencies are supported in Decentraland projects. Libraries should be tagged with decentralandLibrary in their package.json. Check the Awesome repository to find a series of libraries, both created by the Decentraland Foundation and by community members, that solve common problems. ...

Manage dependencies

November 8, 2022
development-guide

A lot of times, your scene might need functionality that is already encapsulated in a reusable library. Using external libraries can make your work a lot easier. You can import external libraries into a Decentraland project and then reference the systems, components, or functions described in these libraries. Check the Awesome repository to find a series of libraries, both created by the Decentraland Foundation and by community members, that solve common problems. ...

Audio streaming

July 11, 2022
development-guide

You can stream audio from a URL. This is useful to play music directly from an internet radio, or stream a conference into your scene. The audio in the source must be in one of the following formats: .mp3, ogg, or aac. The source must also be an https URL (http URLs aren’t supported), and the source should have CORS policies (Cross Origin Resource Sharing) that permit externally accessing it. If this is not the case, you might need to set up a server to act as a proxy and expose the stream in a valid way. ...

Audio streaming

July 11, 2022
development-guide

You can stream audio from a URL. This is useful to play music directly from an internet radio, or stream a conference into your scene. The audio in the source must be in one of the following formats: .mp3, ogg, or aac. The source must also be an https URL (http URLs aren’t supported), and the source should have CORS policies (Cross Origin Resource Sharing) that permit externally accessing it. If this is not the case, you might need to set up a server to act as a proxy and expose the stream in a valid way. ...

Debug in preview

June 29, 2022
development-guide

Running a preview provides some useful debugging information and tools to help you understand how the scene is rendered. The preview mode provides indicators that show parcel boundaries and the orientation of the scene. If the scene can’t be compiled, you’ll just see the grid on the ground, with nothing rendered on it. If this occurs, there are several places where you can look for error messages to help you understand what went wrong: ...

Debug in preview

June 29, 2022
development-guide

Running a preview provides some useful debugging information and tools to help you understand how the scene is rendered. The preview mode provides indicators that show parcel boundaries and the orientation of the scene. If the scene can’t be compiled, you’ll just see the grid on the ground, with nothing rendered on it. If this occurs, there are several places where you can look for error messages to help you understand what went wrong: ...

Create a library

February 8, 2022
development-guide

Libraries are a great way to share solutions to common problems. Complex challenges can be approached once, the solutions encapsulated into a library, and whenever they come up you just need to write one line of code. By sharing libraries with the community, we can make the productivity of all creators grow exponentially. Currently, these libraries in the Awesome Repository are available for all to use. We encourage you to create and share your own as well. ...

Performance optimization

January 11, 2021
development-guide

There are several aspects you can optimize in your scenes to ensure the best possible experience for players who visit them. This document covers some best practices that can make a big difference in how fast your scene loads and how smoothly it runs for players that are on it or on neighboring scenes. Keep in mind that many players may be visiting Decentraland using hardware that is not built for gaming, and via the browser, which limits how much of the hardware’s processing power is available to use. ...