Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AssetDatabase.GetDependencies

Switch to Manual
public static function GetDependencies(pathNames: string[]): string[];

Parameters

Description

Given an array of pathNames, returns the list of all assets that the assets depend on.

The list returned will also include the input guid themselves.