Rims - SuperCatGaming/Velocity-Redux-Mod-Creator GitHub Wiki
If you are following the recommended file structure for mods, rims are located under [Rims]. It is recommended to create a new folder for each rim you add.
To create a new rim, you will need a model; import the model into Unity. Be sure to set the default materials. A default rim material is located in [Common Resources/Materials/(WithoutToon or Original)/Rims]. Then, you need to create a prefab for your rim. To do so, select the model, then access the menu [Assets > Create > Mods > Rim Prefab]. This creates the rim prefab.
[!Note] The name of the prefab is shown as the shorthand name of the rim.
Double click the newly created prefab to open it in the hierarchy. Select the topmost object in the hierarchy; in the inspector, you will see some settings for the rim.
- Full Name: Provide the full name of the rim
- Rim Credit: Provide the (user)name of the creator of the rim
- Wheel Picture: To add an image, first import an image into Unity. Then drag and drop the image into the box next to "Wheel Picture".
[!Note] Rim icons should be 1024x1024 pixels
- Bypass Unlock: check this if you want players to be able to use the rim without unlocking it
- Wheel Model: This is set for you if you used the menu item to create a rim. Otherwise, just click and drag the rim model from the hierarchy to this box
- Supports Wheel Mats: if checked, allows players to select a rim color for this rim
- Wheel Mat Slot: the index of the material to replace with color. If you're unsure, click on the rim in the hierarchy (usually the second object). At the bottom of the inspector, you should see a list of materials. The materials are in index order, starting from 0.
- Supports Back Wheel Mats: if checked, allows players to select a secondary rim color for this rim
- Rim Back Mat Slot: the index of the material to replace with secondary color.
- Tire Model: If you are using a provided tire model, ignore this. Otherwise, we'll get to this
- Supports Tire Mats: if checked, allows players to select a tire color
As mentioned, some tire models are provided; however, you may also want a custom model for the tire. Once you have the tire model, import it into Unity. With the rim prefab open, delete the "Tire" object in the hierarchy; now add your tire by dragging it from the project explorer to the root object of the hierarchy. Now, select the root object and click and drag the newly created tire object into the "Tire Model" box in the inspector.
Finally, to make sure the game knows this is a rim, create a Rim object [Assets > Create > Mods > Rim]. Then add the prefab to this object in the inspector.