IMultiMapMaterial read only - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.DXEngine (https://forum.ab4d.com/forumdisplay.php?fid=11) +--- Thread: IMultiMapMaterial read only (/showthread.php?tid=4352) |
IMultiMapMaterial read only - GraPhiX - 01-26-2023 the interface imultimapmaterial is read only so how do i add my material list ?? Code: #Region "Assembly Ab3d.DXEngine, Version=5.1.8153.1045, Culture=neutral, PublicKeyToken=d45c8e156fba2841" i have this declared Public Property MY_PBRmaterial As IMultiMapMaterial when i try to add a texture to the list my app crashes MY_PBRmaterial.TextureMaps.Add(_textureMapInfo) 'BREAKS HERE so how do i add my textures to the list ? RE: IMultiMapMaterial read only - abenedik - 03-13-2023 What exception is thrown when you call Add method. If it is Null reference exception, then you need to make sure that the material that implements the IMultiMapMaterial will create the TextureMaps list in constructor - see MultiMapMaterial.cs: Code: /// <summary> |