GetMeshMaterial
Kategorie: Objekte
/ Darstellung
Ab Engineversion: 5.1 OC
Beschreibung
Returns the material currently set for the calling object. May also be called from definition context to return the default material of the graphics of this definition.
Syntax
string GetMeshMaterial(int submesh);
Parameter
- submesh:
[opt]
Besteht das Mesh aus mehreren SubMeshes, so kann durch diesen Parameter angegeben werden das Material welches SubMeshes abgefragt werden soll.
Beispiele
for (var i=0,mat; mat=GetID()->GetMeshMaterial(i); ++i)
SetMeshMaterial(mat, i);
Resets the mesh material of all submeshes of this object to their respective defaults.
Clonk-Karl, 2010-04
Sven2, 2014-04