Skip to content

DependencyAnalysis

ClassAssetInventoryAssetInventory.Editor
public class DependencyAnalysis

No description is available for this type.

public DependencyAnalysis(DependencyResultCache cache = null)

No description is available for this member.

Parameters

Name Type Description
cache AssetInventory.DependencyResultCache

public static bool NeedsScan(string type)

No description is available for this member.

Parameters

Name Type Description
type System.String

Returns

System.Boolean — No return description is available.

public static void CleanUp()

Cleans up all temporary folders used for dependency analysis. This should be called during application initialization to remove orphaned folders from previous sessions.

public Task Analyze(AssetInfo info, CancellationToken ct)

No description is available for this member.

Parameters

Name Type Description
info AssetInventory.AssetInfo
ct System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task — No return description is available.

public static Asset FindSRPSupportPackage(int parentAssetId, bool warnOnMultiple = true)

Finds the SRP support package for a given parent asset ID based on current render pipeline. This is the shared logic used by both dependency analysis and preview bulk import.

Parameters

Name Type Description
parentAssetId System.Int32 The parent package ID to search for SRP sub-packages
warnOnMultiple System.Boolean Whether to log a warning when multiple candidates are found

Returns

AssetInventory.Asset — The SRP support package Asset, or null if none found