---
name: "getObjectTextures"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.38"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getObjectTextures
revid: 370025
updated: 2024-10-27T20:33:06Z
---

# getObjectTextures

*Command · Object Manipulation · Arma 3 v1.38*

Locality: arguments **global**

## Description

Gets all custom textures (hiddenSelectionsTextures) associated with the object. 

> [!IMPORTANT]
> Prior to Arma 3 v2.20 it will return an empty [Array](../topics/Array.md) when executed on simple objects.

## Syntax

### Syntax 1

```sqf
getObjectTextures obj
```

**Parameters:**

- `obj`: [Object](../topics/Object.md)

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - array of textures

### Syntax 2

*since Arma3 2.20*

```sqf
obj getObjectTextures sels
```

**Parameters:**

- `obj`: [Object](../topics/Object.md) - entity
- `sels`: [Array](../topics/Array.md) - array of index(es) and/or selection(s). If array is empty [] - default object textures are returned (see example 3)

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - array of textures in order of 'sels'. Non existing textures filled with [nil](../commands/nil.md)s.

## Examples

### Example 1

```sqf
_textures = getObjectTextures player;
```

### Example 2

```sqf
player setObjectTexture ["clan", "\a3\missions_f_epa\data\img\orbat\b_111_texture_ca.paa"];
player getObjectTextures ["clan", 1, 0, player, "dskjhkjhsad"]; 
// ["a3\missions_f_epa\data\img\orbat\b_111_texture_ca.paa","","a3\characters_f\blufor\data\clothing1_co.paa",<null>,<null>]
```

### Example 3

```sqf
player setObjectTexture [0, ""];
player getObjectTextures []; // ["a3\characters_f\blufor\data\clothing1_co.paa",""]
```

## See also

[setObjectTexture](../commands/setObjectTexture.md) · [setObjectTextureGlobal](../commands/setObjectTextureGlobal.md) · [getObjectMaterials](../commands/getObjectMaterials.md) · [setObjectMaterial](../commands/setObjectMaterial.md) · [setObjectMaterialGlobal](../commands/setObjectMaterialGlobal.md) · [getModelInfo](../commands/getModelInfo.md)

<sub>Source: [BI Community Wiki — getObjectTextures](https://community.bistudio.com/wiki/getObjectTextures) (revision 370025).</sub>
