Install Guide

Available for Windows, Mac and Linux

Installing DCL-Edit

  1. Install the Decentraland SDK Package. To do so, just follow the first tutorial step “Install the CLI” on the Decentraland Website
  2. Create a new scene as described in the “Create your first scene” section in┬áthe above documentation
  3. Open a command line interface and navigate to the project’s root folder
  4. Install dcl-edit by running this command
    npm install -g dcl-edit
  5. Start the editor running this command

Setting up your code

  1. open the game.ts file in the /src folder with an editor of your choice
  2. add the following line at the top:
    import {scene} from "./scene"
    Now you can reference entities in your code, as soon as you give them a unique name in the Inspector and tick “Expose to Script” and save the scene by hitting the floppy icon on the top-right of the scene view.
  3. reference your entities and components like so:
  4. optionally, you may want to delete the example code with the rotating cube in game.ts file and start from scratch

To learn more about entities and components, read the Decentraland SDK documentation.

Importing GLTF shapes

DCL-Edit will recognize any glb-file located in the project or its subdirectories. It’s recommended to place one glb-file and a matching “thumbnail.png” in a single folder each.

This also means that you can reuse the assets from any scene that you downloaded from the Decentraland Builder by copying them into your new project. You can actually run DCL-Edit in any downloaded project form the Decentraland Builder. Note though, that currently, DCL-Edit does not show your scene setup in this case.

Now enjoy creating whatever you like and be sure to join our Discord Channel if you need further support!