# CalculatePlayerDependenciesForScene

> Calculates the Scene dependency information.

## Definition

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

## CalculatePlayerDependenciesForScene(string, BuildSettings, BuildUsageTagSet)

Calculates the Scene dependency information.

```csharp
public static SceneDependencyInfo CalculatePlayerDependenciesForScene(string scenePath, BuildSettings settings, BuildUsageTagSet usageSet)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Input path of the Scene for dependency calculation.**** (\[BuildSettings]\(/engine/6000.7/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagSet]\(/engine/6000.7/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.

### Returns

| Type                                                                                                    | Description                           |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [SceneDependencyInfo](/engine/6000.7/script-reference/unityeditor/build/content/scenedependencyinfo.md) | Dependency information for the Scene. |

### Remarks

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

## CalculatePlayerDependenciesForScene(string, BuildSettings, BuildUsageTagSet, BuildUsageCache)

Calculates the Scene dependency information.

```csharp
public static SceneDependencyInfo CalculatePlayerDependenciesForScene(string scenePath, BuildSettings settings, BuildUsageTagSet usageSet, BuildUsageCache usageCache)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Input path of the Scene for dependency calculation.**** (\[BuildSettings]\(/engine/6000.7/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagSet]\(/engine/6000.7/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.**** (\[BuildUsageCache]\(/engine/6000.7/script-reference/unityeditor/build/content/buildusagecache)): Optional cache object to use for improving performance with multiple calls to this api.

### Returns

| Type                                                                                                    | Description                           |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [SceneDependencyInfo](/engine/6000.7/script-reference/unityeditor/build/content/scenedependencyinfo.md) | Dependency information for the Scene. |

### Remarks

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

## CalculatePlayerDependenciesForScene(string, BuildSettings, BuildUsageTagSet, BuildUsageCache, DependencyType)

Calculates the Scene dependency information.

```csharp
public static SceneDependencyInfo CalculatePlayerDependenciesForScene(string scenePath, BuildSettings settings, BuildUsageTagSet usageSet, BuildUsageCache usageCache, DependencyType mode)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Input path of the Scene for dependency calculation.**** (\[BuildSettings]\(/engine/6000.7/script-reference/unityeditor/build/content/buildsettings)): Settings for dependency calculation.**** (\[BuildUsageTagSet]\(/engine/6000.7/script-reference/unityeditor/build/content/buildusagetagset)): Output usage tags generated from dependency calculation.**** (\[BuildUsageCache]\(/engine/6000.7/script-reference/unityeditor/build/content/buildusagecache)): Optional cache object to use for improving performance with multiple calls to this api.**** (\[DependencyType]\(/engine/6000.7/script-reference/unityeditor/build/content/dependencytype)): Specifies how to calculate dependencies between internal scenes and game assets.

### Returns

| Type                                                                                                    | Description                           |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [SceneDependencyInfo](/engine/6000.7/script-reference/unityeditor/build/content/scenedependencyinfo.md) | Dependency information for the Scene. |

### Remarks

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