Create Custom Models

Getting Started

To export your models for Banana Shooter’s map editor, you will need to install Unity with the Banana Shooter Software Development Kit imported (BS SDK)

Full tutorial here:

How to setup your model in Unity

First, we need to set everything up in Unity, so we can export models as source.unity3d files, which the game can read.

  1. Create a folder in the Asset directory called Resources (This isn’t necessary, but it’s highly recommended for organization)

  2. You can put all the models you wish to export in this folder. It is recommended to categorize the folder contents, such as putting models into an Asset\Resources\Models\ folder and materials in an Asset\Resources\Materials\ folder, and so on

  3. After importing the models, drag it into the scene and a GUI will open on the side called the inspector

../_images/model-inspector.png
  1. Name the model model using the text box at the top of the inspector

  2. If your model has a material, make sure to set it by dragging the material from the assets folder onto your model in the scene

  3. Navigate to the Asset\AssetBundles\source folder and drag your model from the Hierarchy list into the source folder

../_images/hierarchy-gui.png
  1. This will open a propmt. Select Original Prefab

../_images/prefab-popup.png
  1. Your project should now look something like this, and you are ready to export

../_images/project-overview.png

How to export your model

If there are no errors in your Console, then you can export your model

  1. On the top of your screen, navigate to Asset Bundle > Asset Bundle Creator

../_images/assetbundle-top-bar1.png
  1. Click the Build Asset Bundles button, you do not have to play with the settings, they’re already setup and messing with the settings might cause some bugs

  2. After building your asset bundles, there should be a button under Bundle Versions that will look similar to below

../_images/assetbundlecreator-bundleversions.png
  1. Press this button and then Show in explorer to open it in File Explorer

  2. If you see a file named source.unity3d then it has been successfully exported and you’re ready to import it into Banana Shooter: How To Import Custom Models