Type 'null' is not assignable to type 'BaseTexture'

I want to clear texture when apply color and i’m using typescript.
the code works but i’m getting this warning. How can i fix it ?
I try to use dispose instead of set null but the color become black anyway.

material.albedoTexture = null as any;

@sebavan - should we make the textures Nullable?

Yup I ll do later today, I do not understand how it could have been like this for so long :slight_smile:

Thanks a ton for reporting @Pinky