File Path Attribute特性:用于字符串字段,并为目录路径提供接口。
![7643202-f2cd7786c712a715.gif](https://img-blog.csdnimg.cn/img_convert/582b766e1053353a737838db1f848af2.gif)
【FolderPath】 默认情况下,FolderPath提供了一个相对于Unity项目的路径。
![7643202-a9b4c1d608fed29e.gif](https://img-blog.csdnimg.cn/img_convert/2fe7c0dc820523cc7f8345cb3abd25fe.gif)
// 默认情况下,FolderPath提供了一个相对于Unity项目的路径。
[FolderPath]
public string UnityProjectPath;
【ParentFolder】可以提供自定义父路径。父路径可以是相对于Unity项目的,也可以是绝对的。
![7643202-5c5a7a790be66cfe.gif](https://img-blog.csdnimg.cn/img_convert/6bda623e2feee4a8e145bd874552510b.gif)
// 可以提供自定义