Change material of asset type render through code

Hi,
How can I change material of asset type render through code?

@Leonidas @yaustar

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
}