How to apply the primary/secondary colors to the meshes?
I've replaced the pioneer's mesh (and hid the original) to be able to play custom animations, and I'm also attaching custom equipment meshes to it. Equipment uses MM_FactoryBaked like the vanilla.
But the painted colors are black. How to get the colors you set in the lockers? How to apply them to the custom equipment and the pioneer's mesh?
Issue about the color: https://github.com/chriscavalluzzi/SuperPioneer/issues/35
GitHub
First-person model has the wrong colors · Issue #35 · chriscavalluz...
The model has black textures when looking at the feet for example. It's supposed to respect the colors you set in the character customization.
2 Replies
Did you add custom data floats to the meshes? First thing I'd try.
Hooking all the
UPrimitiveComponent::SetCustomPrimitiveData*
for the player model. Equipment may be hooked to the BuildGun, but using the PlayerCustomizationDataChanged event it easier (although the mappings have to be hardcoded).