Version: 2023.2
言語: 日本語
public static bool TryGetAssetFolderInfo (string path, out bool rootFolder, out bool immutable);

パラメーター

path A project relative or absolute path to a file or a folder.
rootFolder This value will be set to true if the given path is a root folder in the AssetDatabase.
immutable This value will be true if the given file or folder can't be modified by the AssetDatabase .

戻り値

bool Returns true if the given path is in a folder managed by the AssetDatabase, false otherwise.

説明

Get AssetDatabase specific information about a folder.

This method can be used to know whether a path is tracked by the AssetDatabase. Being tracked means that files added to this folder will have a .meta file added along them and be imported and available in the current Unity project. The out arguments can be used to get more information about the given path. - rootFolder is true if the given path is the root of a tracked path on your drive. For example the Assets folder is a root. - immutable is true if the given path is under a root folder registered with the immutable flag. For example files in a package added from the package manager registry will be immutable.

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