SetMaterialTexture method

void SetMaterialTexture(
  1. MaterialD material,
  2. MaterialMapIndex mapType,
  3. Texture2DD texture
)

Implementation

void SetMaterialTexture(
  MaterialD material,
  MaterialMapIndex mapType,
  Texture2DD texture,
) => run(
  () => 'SetMaterialTexture($material, ${mapType.name}, $texture)',
  () => material.maps[mapType.value].texture = texture,
);