How to get project path in Unity3d

Some little code snippets to get filepaths in different situations

If you need a file path to specific asset you can use AssetDatabase class:

If you need a file path to your project’s root path, you can use this:

*this works in Editor scripts, such as your Editor Windows, or menus.

Понравилась статья? Поделиться с друзьями:
Добавить комментарий

:) :D :( :o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: