<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
Select Can Rover prefab located in Game/Prefabs/Rover/Bodies
Press Ctrl+D (Comand + D) to duplicate the prefab, name it as you wish.
Double click to open the prefab
You’ll find the body_soda_can_2x1 object as a child of the Body object you need to replace it with a new model.
Drag the new model near the old one, adjust position, scale, and rotation so they have an approximately similar size. Delete the old model.
I’m going to use the plastic_cup model located at the project. You can leave battary_small object as additional visual detail or remove it.
Select prefab origin object. Find Body Part Behaviour script in the inspector. Unfold Visuals Objects variable and drag all models you’ve just added.
You can add additional slots or remove empty ones using the +
and -
buttons. Make sure all visual objects are referenced.
Adjust 4 Snap Point objects position if required.
Select the Body object and find the Polygon Collider 2D
script. Press the Edit Collider
button.
Adjust collider shape dragging points. Make sure to leave gaps for wheels. Like at an example:
Exit prefab mode.
Duplicate Can Body asset that is located in the Data/Levels System/Rover Parts/Bodies
folder. Name it accordingly.
Drag newly created prefab into Part Object and Build Visuals fields.
Open Level Editor using the Tools - Level Editor
menu.
Select the Rover Parts
tab.
Find a field called rowerParts array size and increase its value by one
You’ll see the additional element that appeared at the very bottom of the list below.
Drag the newly created asset here.
Now you’ll be able to select a new body type while creating or editing levels