# CalculatePlayerDependenciesForGameManagers

> Calculates dependency information for various internal Unity game manager classes.

## Definition

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

## CalculatePlayerDependenciesForGameManagers(BuildSettings, BuildUsageTagGlobal, BuildUsageTagSet)

Calculates dependency information for various internal Unity game manager classes.

> **Warning:**
>
> **Deprecated.** CalculatePlayerDependenciesForGameManagers will be removed in a future version.

```csharp
public static GameManagerDependencyInfo CalculatePlayerDependenciesForGameManagers(BuildSettings settings, BuildUsageTagGlobal globalUsage, BuildUsageTagSet usageSet)
```

### Parameters

**** (\[BuildSettings]\(/engine/6000.5/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagGlobal]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagglobal)): Global usage tag for lighting and fog modes in use in the project.**** (\[BuildUsageTagSet]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.

### Returns

| Type                                                                                                                | Description                                                          |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [GameManagerDependencyInfo](/engine/6000.5/script-reference/unityeditor/build/content/gamemanagerdependencyinfo.md) | The calculated dependencies for internal Unity game manager classes. |

### Remarks

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

## CalculatePlayerDependenciesForGameManagers(BuildSettings, BuildUsageTagGlobal, BuildUsageTagSet, BuildUsageCache)

Calculates dependency information for various internal Unity game manager classes.

> **Warning:**
>
> **Deprecated.** CalculatePlayerDependenciesForGameManagers will be removed in a future version.

```csharp
public static GameManagerDependencyInfo CalculatePlayerDependenciesForGameManagers(BuildSettings settings, BuildUsageTagGlobal globalUsage, BuildUsageTagSet usageSet, BuildUsageCache usageCache)
```

### Parameters

**** (\[BuildSettings]\(/engine/6000.5/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagGlobal]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagglobal)): Global usage tag for lighting and fog modes in use in the project.**** (\[BuildUsageTagSet]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.**** (\[BuildUsageCache]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagecache)): Optional cache object to use for improving performance with multiple calls to this api.

### Returns

| Type                                                                                                                | Description                                                          |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [GameManagerDependencyInfo](/engine/6000.5/script-reference/unityeditor/build/content/gamemanagerdependencyinfo.md) | The calculated dependencies for internal Unity game manager classes. |

### Remarks

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

## CalculatePlayerDependenciesForGameManagers(BuildSettings, BuildUsageTagGlobal, BuildUsageTagSet, BuildUsageCache, DependencyType)

Calculates dependency information for various internal Unity game manager classes.

> **Warning:**
>
> **Deprecated.** CalculatePlayerDependenciesForGameManagers will be removed in a future version.

```csharp
public static GameManagerDependencyInfo CalculatePlayerDependenciesForGameManagers(BuildSettings settings, BuildUsageTagGlobal globalUsage, BuildUsageTagSet usageSet, BuildUsageCache usageCache, DependencyType mode)
```

### Parameters

**** (\[BuildSettings]\(/engine/6000.5/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagGlobal]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagglobal)): Global usage tag for lighting and fog modes in use in the project.**** (\[BuildUsageTagSet]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.**** (\[BuildUsageCache]\(/engine/6000.5/script-reference/unityeditor/build/content/buildusagecache)): Optional cache object to use for improving performance with multiple calls to this api.**** (\[DependencyType]\(/engine/6000.5/script-reference/unityeditor/build/content/dependencytype)): Specifies how to calculate dependencies between internal Unity game managers and game assets.

### Returns

| Type                                                                                                                | Description                                                          |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| [GameManagerDependencyInfo](/engine/6000.5/script-reference/unityeditor/build/content/gamemanagerdependencyinfo.md) | The calculated dependencies for internal Unity game manager classes. |

### Remarks

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