# GetPlayerDependenciesForObjects

> Obtains a list of objects referenced by an object.

## Definition

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

## GetPlayerDependenciesForObjects(ObjectIdentifier\[], BuildTarget, TypeDB)

Obtains a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObjects(ObjectIdentifier[] objectIDs, BuildTarget target, TypeDB typeDB)
```

### Parameters

**** (\[ObjectIdentifier\[]]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The specific object identifiers.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The target platform.**** (TypeDB): The user script TypeDB for the player.

### Returns

| Type                                                                                                  | Description                                                                               |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs for the objects referenced by the specified objects. |

### Remarks

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

## GetPlayerDependenciesForObjects(ObjectIdentifier\[], BuildTarget, TypeDB, DependencyType)

Obtains a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObjects(ObjectIdentifier[] objectIDs, BuildTarget target, TypeDB typeDB, DependencyType mode)
```

### Parameters

**** (\[ObjectIdentifier\[]]\(/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier)): The specific object identifiers.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The target platform.**** (TypeDB): The user script TypeDB for the player.**** (\[DependencyType]\(/engine/6000.7/script-reference/unityeditor/build/content/dependencytype)): Specifies how to calculate dependencies between internal objects and game assets.

### Returns

| Type                                                                                                  | Description                                                                               |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs for the objects referenced by the specified objects. |

### Remarks

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

## GetPlayerDependenciesForObjects(Object\[], BuildTarget, TypeDB)

Obtains a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObjects(Object[] objects, BuildTarget target, TypeDB typeDB)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.7/script-reference/unityengine/object)): The specific objects.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The target platform.**** (TypeDB): The user script TypeDB for the player.

### Returns

| Type                                                                                                  | Description                                                                               |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs for the objects referenced by the specified objects. |

### Remarks

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

## GetPlayerDependenciesForObjects(Object\[], BuildTarget, TypeDB, DependencyType)

Obtains a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObjects(Object[] objects, BuildTarget target, TypeDB typeDB, DependencyType mode)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.7/script-reference/unityengine/object)): The specific objects.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The target platform.**** (TypeDB): The user script TypeDB for the player.**** (\[DependencyType]\(/engine/6000.7/script-reference/unityeditor/build/content/dependencytype)): Specifies how to calculate dependencies between internal objects and game assets.

### Returns

| Type                                                                                                  | Description                                                                               |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [ObjectIdentifier\[\]](/engine/6000.7/script-reference/unityeditor/build/content/objectidentifier.md) | An array of ObjectIdentifier structs for the objects referenced by the specified objects. |

### Remarks

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