When using typescript for our project, AddAttribute is not found as a valid property on instances of either the CustomMaterial or PBRCustomMaterial class. Are we missing an import statement? We currently:
import { PBRCustomMaterial, CustomMaterial } from ‘babylonjs-materials’;
and then:
let myCustomMat= new PBRCustomMaterial(“uvAdjustableMat”, scene);
myCustomMat.AddAttribute(“uvc”); //this is the error line. AddAttribute is shown as not a valid property