File utils
More...
|
static string | ADBPathToFullPath (string adbPath) |
| Converts the given project-relative path to a full path More...
|
|
static bool | AssetExists (string adbPath) |
| Returns TRUE if the file/directory at the given path exists. More...
|
|
static string | FullPathToADBPath (string fullPath) |
| Converts the given full path to a project-relative path More...
|
|
static int | GetScriptExecutionOrder (MonoBehaviour monobehaviour) |
| Gets the script execution order of the given MonoBehaviour More...
|
|
static string | GUIDToExistingAssetPath (string guid) |
| Returns the asset path of the given GUID (relative to Unity project's folder), or an empty string if either the GUID is invalid or the related path doesn't exist. More...
|
|
static bool | IsEmpty (string dir) |
| Checks if the given directory (full path) is empty or not More...
|
|
static void | MakeEmpty (string dir) |
| Deletes all files and subdirectories from the given directory More...
|
|
static string | MonoInstanceADBDir (ScriptableObject scriptableObj) |
| Returns the adb directory that contains the given ScriptableObject without final slash More...
|
|
static string | MonoInstanceADBDir (MonoBehaviour monobehaviour) |
| Returns the adb directory that contains the given MonoBehaviour without final slash More...
|
|
static string | MonoInstanceADBPath (ScriptableObject scriptableObj) |
| Returns the adb path to the given ScriptableObject More...
|
|
static string | MonoInstanceADBPath (MonoBehaviour monobehaviour) |
| Returns the adb path to the given MonoBehaviour More...
|
|
static List< string > | SelectedADBDirs () |
| Returns the adb paths to the selected folders in the Project panel, or NULL if there is none. Contrary to Selection.activeObject, which only returns folders selected in the right side of the panel, this method also works with folders selected in the left side. More...
|
|
static void | SetScriptExecutionOrder (MonoBehaviour monobehaviour, int order) |
| Sets the script execution order of the given MonoBehaviour More...
|
|
|
static string | assetsPath [get] |
| Full path to project's Assets directory, without final slash. More...
|
|
static string | projectPath [get] |
| Full path to project directory, without final slash. More...
|
|
static string DG.DemiEditor.DeEditorFileUtils.ADBPathToFullPath |
( |
string |
adbPath | ) |
|
|
static |
Converts the given project-relative path to a full path
static bool DG.DemiEditor.DeEditorFileUtils.AssetExists |
( |
string |
adbPath | ) |
|
|
static |
Returns TRUE if the file/directory at the given path exists.
- Parameters
-
adbPath | Path, relative to Unity's project folder |
static string DG.DemiEditor.DeEditorFileUtils.FullPathToADBPath |
( |
string |
fullPath | ) |
|
|
static |
Converts the given full path to a project-relative path
static int DG.DemiEditor.DeEditorFileUtils.GetScriptExecutionOrder |
( |
MonoBehaviour |
monobehaviour | ) |
|
|
static |
Gets the script execution order of the given MonoBehaviour
static string DG.DemiEditor.DeEditorFileUtils.GUIDToExistingAssetPath |
( |
string |
guid | ) |
|
|
static |
Returns the asset path of the given GUID (relative to Unity project's folder), or an empty string if either the GUID is invalid or the related path doesn't exist.
static bool DG.DemiEditor.DeEditorFileUtils.IsEmpty |
( |
string |
dir | ) |
|
|
static |
Checks if the given directory (full path) is empty or not
static void DG.DemiEditor.DeEditorFileUtils.MakeEmpty |
( |
string |
dir | ) |
|
|
static |
Deletes all files and subdirectories from the given directory
static string DG.DemiEditor.DeEditorFileUtils.MonoInstanceADBDir |
( |
ScriptableObject |
scriptableObj | ) |
|
|
static |
Returns the adb directory that contains the given ScriptableObject without final slash
static string DG.DemiEditor.DeEditorFileUtils.MonoInstanceADBDir |
( |
MonoBehaviour |
monobehaviour | ) |
|
|
static |
Returns the adb directory that contains the given MonoBehaviour without final slash
static string DG.DemiEditor.DeEditorFileUtils.MonoInstanceADBPath |
( |
ScriptableObject |
scriptableObj | ) |
|
|
static |
Returns the adb path to the given ScriptableObject
static string DG.DemiEditor.DeEditorFileUtils.MonoInstanceADBPath |
( |
MonoBehaviour |
monobehaviour | ) |
|
|
static |
Returns the adb path to the given MonoBehaviour
static List<string> DG.DemiEditor.DeEditorFileUtils.SelectedADBDirs |
( |
| ) |
|
|
static |
Returns the adb paths to the selected folders in the Project panel, or NULL if there is none. Contrary to Selection.activeObject, which only returns folders selected in the right side of the panel, this method also works with folders selected in the left side.
static void DG.DemiEditor.DeEditorFileUtils.SetScriptExecutionOrder |
( |
MonoBehaviour |
monobehaviour, |
|
|
int |
order |
|
) |
| |
|
static |
Sets the script execution order of the given MonoBehaviour
readonly string DG.DemiEditor.DeEditorFileUtils.ADBPathSlash = "/" |
|
static |
Path slash for AssetDatabase format
readonly string DG.DemiEditor.DeEditorFileUtils.ADBPathSlashToReplace = "\\" |
|
static |
Path slash to replace for AssetDatabase format
readonly string DG.DemiEditor.DeEditorFileUtils.PathSlash |
|
static |
readonly string DG.DemiEditor.DeEditorFileUtils.PathSlashToReplace |
|
static |
Path slash to replace on current OS
string DG.DemiEditor.DeEditorFileUtils.assetsPath |
|
staticget |
Full path to project's Assets directory, without final slash.
string DG.DemiEditor.DeEditorFileUtils.projectPath |
|
staticget |
Full path to project directory, without final slash.
The documentation for this class was generated from the following file:
- D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__Demigiant.Libraries/_Demigiant.Libraries/Core/DemiEditor/DeEditorFileUtils.cs