How to deal with car color customization
ColorPicker
- Create Material Parameter Collection then name it like you want in my project I named it “MP_TestColor”
- In the Material Parameter Collection that I created add vecteur Parameter then name it like you want in my project I named it “TestColori”
- 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.
- Add the parameter name
- Connect collection parameter node to base color
Note
collection parameter node is an alternative to color parameter
- Open the weight that suits you.
In weight >> Graph >> EventGraph >> UpdateSelectedColor Functions
- Add the Material Parameter Collection that you created before.
- Add the parameter name.
Special Materials (LIVERY)
- Create an “CustomEvent” and name it as you want and then paste the two nodes [Create Deynamic Material Instance] and [Set material]
- In the car model, take the number and name of the material you want to move to.
- Write the material number in the [Create Deynamic Material Instance node]
- Add the material to [Create Deynamic Material Instance node]
- Promotes to variable
Then name the variable like you want in my project I named it “TestColorREF”
- In the [Set material node], write the number of the original material.
- Assign mesh to target and “TestColorREF variable” to material.
In weight >> Graph >> EventGraph >> Button >> on clicked
- Add the event generated in bp_car to the on clicked event
I will be happy to help if you need it.