SetWearableMaterial

ModularCharacterManager.SetWearableMaterial

Declaration public void SetWearableToNewMaterial(int _slotIndex, int _arrayIndex, Material _material);

Parameters

Parameter
Description

int _slotIndex

The slot of the Wearable you want to add the new Material to.

int _arrayIndex,

The index of the Material you want to swap

Material _newMaterial

The new Material you want to apply.

Description The public function to replace the current material on a Wearable currently equipped to a particular slot with another material. Equips the referenced Material to the specified array on the mesh of the Wearable in the specified slot.

Declaration public void SetWearableToNewMaterial(int _slotIndex, int _arrayIndex, int _materialIndex);

Parameters

Parameter
Description

int _slotIndex

The slot of the Wearable you want to add the new Material to.

int _arrayIndex,

The index of the Material you want to swap

int _materialIndex,

The index of the Material in the Wearable's Available Material array, at the slot of the arrayIndex.

Description The public function to replace current material on a Wearable currently equipped to a particular slot with another material using slot and index references

Last updated