Hi guys ,im facing this type of issue once i change the diffuse texture through code then it shows me an error
var material = this.playerSelectionGroup[index].playerClothColor;
this.characterBody.model.model.meshInstances[0].material=material.resource;