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 UnityToolbox.General.Management.ResourcesUtil.GetFileData< T > |
( |
string |
key, |
|
|
string |
filename |
|
) |
| |
|
static |
◆ GetLocalPath()
static string UnityToolbox.General.Management.ResourcesUtil.GetLocalPath |
( |
string |
key | ) |
|
|
static |
◆ GetProjectPath()
static string UnityToolbox.General.Management.ResourcesUtil.GetProjectPath |
( |
string |
key | ) |
|
|
static |
◆ GetResourcesPath()
static string UnityToolbox.General.Management.ResourcesUtil.GetResourcesPath |
( |
string |
key | ) |
|
|
static |
◆ IsFullPathValid()
static bool UnityToolbox.General.Management.ResourcesUtil.IsFullPathValid |
( |
string |
path | ) |
|
|
static |
◆ TrySetValidPath()
static bool UnityToolbox.General.Management.ResourcesUtil.TrySetValidPath |
( |
string |
fullPath, |
|
|
string |
key |
|
) |
| |
|
static |
◆ WriteFile()
static void UnityToolbox.General.Management.ResourcesUtil.WriteFile |
( |
string |
key, |
|
|
string |
filename, |
|
|
object |
fileData |
|
) |
| |
|
static |