Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Materials

The bus customization replaces several materials on the bus automatically with the player customized ones. To tell the game which materials to replace we need to setup the blueprint accordingly. If you look into the “BusBaseConfig“ data asset you will see several preset materials. Those are the parent materials used throughout the game. The game will search for these materials in the customization and replaces them when with the customized ones when the player customizes their bus. If you want to change default visuals of the bus, e.g. if you want to change the default chassis color of your bus, create a material instance of the default chassis material and assign it to your bus chassis. You can then change the color in the material instance. The new color will be used by default when the bus is bought ingame.

Static Mesh

Decals are directly baked into the material, this is done by calculating the UV coordinates of the player interaction on the bus and placing the selected decal image on the selected UV coordinates. Those UV coordinates are calculated by raycasting against an invisible static mesh representation of the bus. To create this static mesh open the skeletal mesh of your bus and click the Make Static Mesh button .

Image RemovedImage Added

Save this mesh inside your plugin folder and don’t forget to assign this mesh to the Customisation Mesh variable in the ModInfo.

Without this static mesh setup players won’t be able to place decals on their bus.

Next Step

Shop Video

On this page:

Table of Contents
minLevel1
maxLevel7
outlinetrue
stylenone
printablefalse