A utility which writes and reads data with correctly formatted paths.
|
| static bool | IsFullPathValid (string path) |
| | Checks whether the path is valid and defined with a "Resources" folder.
|
| |
| static bool | TrySetValidPath (string fullPath, string key) |
| | Tries to define a path within the ProjectPrefs. The Application.dataPath will be removed from it.
|
| |
| static string | GetLocalPath (string key) |
| | Builds the local path from the stored path within the ProjectPrefs.
|
| |
| static string | GetResourcesPath (string key) |
| | Builds the "Resources" path from the stored path within the ProjectPrefs.
|
| |
| static string | GetProjectPath (string key) |
| | Builds the project path from the stored path within the ProjectPrefs.
|
| |
| static T | GetFileData< T > (string key, string filename) |
| | Reads a TextAsset with a key for the ProjectPrefs and the filename.
|
| |
| static void | WriteFile (string key, string filename, object fileData) |
| | Writes an object to a file and refreshes the AssetDatabase.
|
| |
◆ GetFileData< T >()
| static T ResourcesUtil.GetFileData< T > |
( |
string |
key, |
|
|
string |
filename |
|
) |
| |
|
static |
◆ GetLocalPath()
| static string ResourcesUtil.GetLocalPath |
( |
string |
key | ) |
|
|
static |
◆ GetProjectPath()
| static string ResourcesUtil.GetProjectPath |
( |
string |
key | ) |
|
|
static |
◆ GetResourcesPath()
| static string ResourcesUtil.GetResourcesPath |
( |
string |
key | ) |
|
|
static |
◆ IsFullPathValid()
| static bool ResourcesUtil.IsFullPathValid |
( |
string |
path | ) |
|
|
static |
◆ TrySetValidPath()
| static bool ResourcesUtil.TrySetValidPath |
( |
string |
fullPath, |
|
|
string |
key |
|
) |
| |
|
static |
◆ WriteFile()
| static void ResourcesUtil.WriteFile |
( |
string |
key, |
|
|
string |
filename, |
|
|
object |
fileData |
|
) |
| |
|
static |