Frontend Prefab
The frontend is the main menu and any other menus where you will be able to select your ship. It is important that you configure these so players know a little bit about your ship before selecting it.
Setting up your frontend mesh is identical to setting up your in-game ship, instead this time you want to drag your frontend mesh onto the Frontend Ship object. Once you’ve dragged the ship in you’ll want to set the position, rotation and scale to match the in-game ship but multiply the scale by 10. Unity supports math functions in text fields so you can you can do the multiplication by adding *10
to the end of your scale values. Right clicking the transform component header will also let you copy and paste transforms to and from different objects, this can be useful for very quickly getting your frontend ship configured.
For your own convenience you might also want to disable the frontend mesh’s object to hide it.
Once the frontend ship is in your scene and scaled properly you will now also want to setup the reference to it so the game can read it. Open the ship inspector and expand the Edit Frontend Data foldout. Now drag your frontend ship object onto the Frontend Mesh field.
Finally you can configure your display name, display decription and out of 10 stats which will be shown on the menu.
Variants
Variants allow you to bundle multiple ships into one option on the menu. You configure them using the in-game ship prefab, under the Edit Frontend Data section.
You have Ship A and Ship B. Ship B is a 2280 version of Ship A and you’d like to merge it on the menu. To do this:
On Ship B, enable the
Hide Me On Menu
option in its Edit Frontend Data section.On Ship A, under Edit Frontend Data, click
Add Variant
Enter a name for the variant in
Variant Name
Enter the Display Name of Ship B in
Other Ship Display Name
If desired, enter a base variant name in
Base Variant Name Override
at the top of the Variants section. By default the base variant (Ship A) will be called 2159, and this lets you override that.
Now export Ship A and Ship B and install them into the game. You’ll now see that they are bundled into a single menu option!
Note that doing this makes Ship A a dependency for Ship B to be selectable, so make sure you let people know they’ll need Ship A to be installed to select Ship B.