Hi,
How can I change material of asset type render through code?
We are using render type asset, it is working for any other type except this
Hi,
How can I change material of asset type render through code?
We are using render type asset, it is working for any other type except this
Have you tried changing the material on each mesh instance of this render?
for(const meshInstance of this.entity.render.meshInstances){
meshInstance.material = this.materialAsset.resource; // set your material
}