We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f310f0 commit 01ef540Copy full SHA for 01ef540
scripts/Game/ESE_Entities.c
@@ -127,6 +127,16 @@ class ESE_Entities
127
128
// ------------------------------------------------------------- MODELS & MATERIALS ------------------------------------------------------------- //
129
130
+ // #ESE_ADD_DOCUMENTATION
131
+ static void GetMaterial(IEntity entity, out string materials[], out int numMaterials)
132
+ {
133
+ VObject mesh = entity.GetVObject();
134
+ if (mesh)
135
136
+ numMaterials = mesh.GetMaterials(materials);
137
+ }
138
139
+
140
// See SCR_Global.SetMaterial() - A copy to help with readability
141
static void SetMaterial(IEntity entity, ResourceName material, bool recursively = true)
142
{
0 commit comments