How do I Add Something to my Game?

From The Endless Mission Wiki
Jump to: navigation, search
When you are using the Editor, and you would like to add something to your Game, you can access the Library and add any Asset into your game.

When you add an Asset into your game, the following things happen:

  • A copy of the Asset in the Library is made.
  • This copy of the Asset is placed inside your Game. We call this copy of the Asset an instance.
  • The reason why it's called an instance is because now, every time you edit any of the properties of this Asset in your Game, you are only changing the Properties of that particular instance. The Properties of the Asset that is in the Library remains unchanged no matter how much you change the instance. Instead, when you Save your game, the properties of that instance are simply saved as part of the Game itself.
  • You may add the same Asset again to your Game, if you do this, then you will have multiple instances of the Asset present in your Game. As you might expect, editing the Properties of one particular instance will leave all other instances in your Game unchanged.
Editor - Library Panel.png
When you are in the Editor, to add an Asset to your Game, you can use the Library Panel on the right side of the screen.

You can drag any Asset from the Library Panel and drop it into your Viewport. As you drag the Asset out and into the Viewport, you will see it appear.

However, if the Asset does not have a visual mesh, it will look invisible as you drag it out.

By default, Assets you add to your Game in this way will appear at the bottom of your Project Hierarchy Panel on the left.

Editor - Drag To Project Hierarchy.png
Alternatively, when you drag an Asset out from the Library Panel, you can drag and drop it onto the Project Hierarchy Panel instead.

The nice part of doing it this way is that you can decide where in your Project Hierarchy the Asset should go first. This is especially convenient for Assets that don't have visual meshes and therefore look invisible in the Viewport.

If you don't drag out your Asset to the Project Hierarchy Panel in this way, then it will automatically be added to the bottom of the your Project Hierarchy Panel as explained in the first method above.