# GetObjectTextureName

## Description

Gets the name of a texture as defined in the model file that it was loaded from, but textures are not guaranteed to have names. Texture names are in the range 1 to GetObjectNumTextures 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 GetObjectTextureName(UINT objID, textureIndex)

char* agk::GetObjectTextureName(UINT objID, UINT textureIndex)

## Parameters

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