Skip to content

HelloPackage_AdvanceDevGuide

Éloi Strée edited this page Jun 16, 2020 · 1 revision

🚧 Under construction, sorry for the spelling


The big lines

This tutorial is for programmer that want to know how to make a core package that is demonstrated in a second package.

  • The core package has only the necessary code, meta files, a minimum of assets.
  • The demo package has unnecessary script and plenty of assets: texture, mesh, music...

If you did not do the basic tutorial. Stop here 🚨!
Hello Package new user tutorial

As I build this tutorial around a workshop call "Magic Doors".
In the context, you can reference to a room pattern to put in highlight your demo scene.

If you do it, you can fork the "The Magic Doors" project and build a endless portfolio of your tools. (A tutorial more precise about that will be crafted later when the project is more stable).

Ok, let's code that.

The developer way

Links:

Add this to your manifest to test the demo:

"be.eloistree.radiocomments":"https://github.com/EloiStree/2020_06_16_RadioComments.git",
"be.eloistree.radiocommentsdemo":"https://github.com/EloiStree/2020_06_16_RadioCommentsRoomDemo.git",
"be.eloistree.magicdoorsroompattern":"https://github.com/EloiStree/2020_05_28_MagicDoorsRoomPattern.git",

Tutorials step-by-step

Youtube Video
Let's start by doing a tool:

The package is done, let's start to work on the demo package:

Now the package demo start to be ready, let's add the magic door part of the project


In Resume

Create a core toolbox in a quarantine project

  1. Create a Quarantine project
  2. Create the Git on a host
  3. Copy the Git in the Assets folder
  4. Create a package.json to identify the package as a package
  5. Create a Runtime and Editor Folder with assemblies (See Dev & Pack)
  6. Link the editor to the runtime assembly
  7. Create the meta file of License.md
  8. Create the tool you schedule to design
  9. Create Sample folder with a scene in it
  10. Add the sample folder to the package.json

Create a full demo toolbox

  1. Create the Git on a host
  2. Copy the Git in the Assets folder of your Quarantine project
  3. Create a package.json to identify the package as a package
  4. Create a Runtime and Editor Folder with assemblies (if needed) (See Dev & Pack)
  5. Link the editor to the runtime assembly
  6. Create the meta file of License.md
  7. In the package.json create a dependency to:
    • Your previous package
    • The package room pattern of the Magic Doors project.
  8. Create a full understandable demo with heavy files authorized
  9. Create Sample folder with a scene in it
  10. Add the sample folder to the package.json

Magic Door specific

  1. You can create a repository "Resources/MyPackageFolderRoomsPrefab/ in your demo toolbox prefab
  2. Drop your room prefab in this folder based on the given pattern in the "Room Pattern" Package (Reminder 3x3x3m meter with a 2x1m door with the pivot at the bot middle of the door.)
  3. Fork the Magic Doors Project

Share it.

When you want to share the project, Share the core project if the guy know who to use your code. And the share project plus the demo git links if the guy want an use example.