Version: 2018.2
public static string[] GetDependencies (string pathName);
public static string[] GetDependencies (string pathName, bool recursive);

パラメーター

pathName依存関係があるアセットへのパス。
recursivefalse の場合、入力値と直接の依存関係があるアセットしか返しません。 true の場合、入力値と間接的な依存関係があるものもすべて含みます。デフォルトは true です。

戻り値

string[] 依存関係があるアセットすべてのパス。

説明

pathName で指定したアセットと依存関係にあるすべてのアセットを取得します

recursive が true の場合、入力したパス自体も含んだリストを返します。


public static string[] GetDependencies (string[] pathNames);
public static string[] GetDependencies (string[] pathNames, bool recursive);

パラメーター

pathNames依存関係があるアセットへのパス。
recursivefalse の場合、入力値と直接の依存関係があるアセットしか返しません。 true の場合、入力値と間接的な依存関係があるものもすべて含みます。デフォルトは true です。

戻り値

string[] 依存関係があるアセットすべてのパス。

説明

pathNames で指定したアセットと依存関係にあるすべてのアセットを取得します

recursive が true の場合、入力したパス自体も含んだリストを返します。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961