I getting errors in visual studio. Clear declaration in meshcomponent inposible because it read only looks…