# GetPlayerObjectIdentifiersInSerializedFile(string, BuildTarget)

> Obtains a list of objects directly contained inside of a loose serialized file.

## Definition

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

```csharp
public static ObjectIdentifier[] GetPlayerObjectIdentifiersInSerializedFile(string filePath, BuildTarget target)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to the serialized file.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The build target to get the object identifiers for.

### Returns

| Type                                                                                                  | Description                                                                                         |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs for the objects directly contained inside the serialized file. |

### Remarks

Internal use only. See note on [ContentBuildInterface](/engine/6000.7/script-reference/unityeditor/build/content/contentbuildinterface.md).
