Legacy Documentation: Version 5.2
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 string[] GetDependencies(string[] pathNames);

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.