# GetPlayerAssetRepresentations(GUID, BuildTarget)

> Obtains a list of visible objects directly contained inside an asset.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.7/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static ObjectIdentifier[] GetPlayerAssetRepresentations(GUID asset, BuildTarget target)
```

### Parameters

**** (GUID): The GUID of the asset.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target to get the representations for.

### Returns

| Type                                                                                                  | Description                                                                                   |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs representing the visible objects contained in the asset. |

### Remarks

The returned objects are not loaded, and thus this method is more performant than [AssetDatabase.LoadAllAssetRepresentationsAtPath](/engine/6000.7/script-reference/unityeditor/assetdatabase/loadallassetrepresentationsatpath.md).
