CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ FolderPath

Path FolderPath
get

Returns the relative path to the directory the file or folder is in.

Returns
The parent folder of the file or folder. Returns null if it's the root path eg "Assets".
See also

Definition at line 172 of file Asset.Path.cs.

173 {
174 get
175 {
176 var dirName = System.IO.Path.GetDirectoryName(m_RelativePath);
177 return String.IsNullOrEmpty(dirName) ? null : dirName;
178 }
179 }