Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

AssetDatabase.GetDependencies(string)

Description

Given an asset pathName, returns the list of all assets it depends on.

The list returned will also include the input path name itself.

static function GetDependencies(pathNames: string[]): string[];
static string[] GetDependencies(string[] pathNames);
static def GetDependencies(pathNames as string[]) as string[]

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.