TryGetAssetFolderInfo(string, out bool, out bool)
Get AssetDatabase specific information about a folder.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
TryGetAssetFolderInfo(string, bool, bool)
public static bool TryGetAssetFolderInfo(string path, out bool rootFolder, out bool immutable)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the given path is in a folder managed by the AssetDatabase, false otherwise. |
Remarks
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.