How to deal with car color customization

How to deal with car color customization

ColorPicker

  1. Create Material Parameter Collection then name it like you want in my project I named it “MP_TestColor”

  1. In the Material Parameter Collection that I created add vecteur Parameter then name it like you want in my project I named it “TestColori”

  1. In the material for the color of the car, add the collection parameter node and then add the Material Parameter Collection that you created before.

  1. Add the parameter name

  1. Connect collection parameter node to base color

Note
collection parameter node is an alternative to color parameter

  1. Open the weight that suits you.

In weight >> Graph >> EventGraph >> UpdateSelectedColor Functions

  1. Add the Material Parameter Collection that you created before.

  1. Add the parameter name.

Special Materials (LIVERY)

  1. Create an “CustomEvent” and name it as you want and then paste the two nodes [Create Deynamic Material Instance] and [Set material]


  1. In the car model, take the number and name of the material you want to move to.

  1. Write the material number in the [Create Deynamic Material Instance node]

  1. Add the material to [Create Deynamic Material Instance node]

  1. Promotes to variable
    Then name the variable like you want in my project I named it “TestColorREF”

  1. In the [Set material node], write the number of the original material.

  1. Assign mesh to target and “TestColorREF variable” to material.

In weight >> Graph >> EventGraph >> Button >> on clicked

  1. Add the event generated in bp_car to the on clicked event

I will be happy to help if you need it.

1 Like