# GetPlayerDependenciesForObject

> Returns a list of objects referenced by an object.

## Definition

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

## GetPlayerDependenciesForObject(ObjectIdentifier, BuildTarget, TypeDB)

Returns a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObject(ObjectIdentifier objectID, BuildTarget target, TypeDB typeDB)
```

### Parameters

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

### Returns

| Type                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------- | ----------- |
| [ObjectIdentifier\[\]](/engine/6000.5/script-reference/unityeditor/build/content/objectidentifier.md) |             |

### Remarks

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

## GetPlayerDependenciesForObject(ObjectIdentifier, BuildTarget, TypeDB, DependencyType)

Returns a list of objects referenced by an object.

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

### Parameters

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

### Returns

| Type                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------- | ----------- |
| [ObjectIdentifier\[\]](/engine/6000.5/script-reference/unityeditor/build/content/objectidentifier.md) |             |

### Remarks

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

## GetPlayerDependenciesForObject(Object, BuildTarget, TypeDB)

Returns a list of objects referenced by an object.

```csharp
public static ObjectIdentifier[] GetPlayerDependenciesForObject(Object targetObject, BuildTarget target, TypeDB typeDB)
```

### Parameters

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

### Returns

| Type                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------- | ----------- |
| [ObjectIdentifier\[\]](/engine/6000.5/script-reference/unityeditor/build/content/objectidentifier.md) |             |

### Remarks

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

## GetPlayerDependenciesForObject(Object, BuildTarget, TypeDB, DependencyType)

Returns a list of objects referenced by an object.

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

### Parameters

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

### Returns

| Type                                                                                                  | Description |
| ----------------------------------------------------------------------------------------------------- | ----------- |
| [ObjectIdentifier\[\]](/engine/6000.5/script-reference/unityeditor/build/content/objectidentifier.md) |             |

### Remarks

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