The 20th of February Decentraland was launched. For the ones who do not know, Decentraland is a virtual world backed by the Ethereum blockchain where its community owns the shape and purpose of their LANDs, creating an innovative and a dynamic relationship between landowners and visitors. With this premise, the sky is the limit.
For this workflow, we work with a Unity plug-in that you can find at GitHub [https://github.com/fairwood/DecentralandUnityPlugin/]. This plugin allows you to work natively from Unity, compose and create all the scenarios without heavy coding.
Also you need to install the DCL sdk and use Node.js to deploy local scenes. https://docs.decentraland.org/getting-started/installation-guide/
#00 Creating the project
Unpack the .zip from the GitHub plugin and duplicate the "Unity Project" in order to use it as your own new scenario for Decentraland. Open the project with Unity minimum 2018 version.
#01 Creating an export path
Now it's time to do the first deploy.
Choose a DCL Project Path in the Standard Export option. I recommend creating a folder in the root of the project, previous to the Assets folder. This way you will take your exports with the project and keep all the files in the same place.
Click "Init Project" to set the basic DCL libraries and wait to the npm to finish.
This command places the basic SDK but not the LAND info nor the files of the scene. This will be exported with the command "Export".
You will know the command has ended the task
once the window changes the name to cmd.exe
Now the project export path has been prepared is time to export the GTLF files.
Click on the Export button and wait for a Log to rise in the Unity Console.
If you want to local deploy your export, you can do it by using the Node.js editor
Locate your export folder and run the command "dcl start"
Wait for the command to finish and a tab should be opened in your browser.
And here you are! Your very first local deploy.
From this point, you can work as if it was Unity vanila when applying materials, importing new meshes and doing your very own compositions. Just keep in mind to use meshes instead of empty groups because the GTLFs are about meshes and wont export correctly to your scene otherwise.
I purr when you're not looking. I'm passionate about environments and all the techie stuff to make them look rad. Learning and improving everyday to be a better hooman.