# GetObjectMeshName

## Description

Gets the name of a mesh as defined in the model file that it was loaded from, but meshes are not guaranteed to have names. Mesh indices are in the range 1 to GetObjectNumMeshes inclusive. If you are calling this command from tier 2 you must delete the returned string with agk::DeleteString when you are done with it.

## Definition

string GetObjectMeshName( objID, meshIndex )

char* agk::GetObjectMeshName( UINT objID, UINT meshIndex )

## Parameters

- objID - The ID of the object to check.
- meshIndex - The index of the mesh to check, first mesh is at index 1.