Class UnityEditorUtils
Inheritance
UnityEditorUtils
Assembly: Xareus.Unity.Utils.dll
Syntax
public static class UnityEditorUtils
Methods
EditorApplication_RegisterPlayModeStateChanged(Action)
Equivalent to "UnityEditor.EditorApplication.PlayModeStateChanged += (PlayModeStateChange state) => action()".
Declaration
public static void EditorApplication_RegisterPlayModeStateChanged(Action action)
Parameters
Type |
Name |
Description |
Action |
action |
|
Exceptions
EditorApplication_isPlayingOrWillChangePlaymode()
Equivalent to "UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode".
Declaration
public static bool EditorApplication_isPlayingOrWillChangePlaymode()
Returns
Exceptions
EditorCoroutineUtility_StartCoroutineOwnerless(IEnumerator)
Equivalent to "EditorCoroutineUtility.StartCoroutineOwnerless();".
Note that this version doesn't return the EditorCoroutine object.
Declaration
public static void EditorCoroutineUtility_StartCoroutineOwnerless(IEnumerator routine)
Parameters
GetMethod(Type, string, Type[])
Declaration
public static MethodInfo GetMethod(Type type, string name, Type[] types)
Parameters
Returns
GetType(string)
Declaration
public static Type GetType(string typeName)
Parameters
Type |
Name |
Description |
string |
typeName |
|
Returns
UnityEditor_AssetDatabase_CreateAsset(Object, string)
Equivalent to "UnityEditor.AssetDatabase.CreateAsset(asset, path);".
Declaration
public static void UnityEditor_AssetDatabase_CreateAsset(Object asset, string path)
Parameters
UnityEditor_AssetDatabase_GenerateUniqueAssetPath(string)
Equivalent to "UnityEditor.AssetDatabase.GenerateUniqueAssetPath(assetPath);".
Declaration
public static string UnityEditor_AssetDatabase_GenerateUniqueAssetPath(string assetPath)
Parameters
Type |
Name |
Description |
string |
assetPath |
|
Returns
UnityEditor_AssetDatabase_GetAssetPath(Object)
Equivalent to "UnityEditor.AssetDatabase.GetAssetPath(asset);".
Declaration
public static string UnityEditor_AssetDatabase_GetAssetPath(Object asset)
Parameters
Type |
Name |
Description |
Object |
asset |
|
Returns
UnityEditor_AssetDatabase_LoadAssetAtPath(string, Type)
Equivalent to "UnityEditor.AssetDatabase.LoadAssetAtPath(assetPath, type);".
Declaration
public static Object UnityEditor_AssetDatabase_LoadAssetAtPath(string assetPath, Type type)
Parameters
Returns
UnityEditor_AssetDatabase_Refresh()
Equivalent to "UnityEditor.AssetDatabase.Refresh();".
Declaration
public static void UnityEditor_AssetDatabase_Refresh()
UnityEditor_AssetDatabase_SaveAssets()
Equivalent to "UnityEditor.AssetDatabase.SaveAssets();".
Declaration
public static void UnityEditor_AssetDatabase_SaveAssets()
UnityEditor_EditorApplication_IsPlayingOrWillChangePlaymode()
Equivalent to "UnityEditor.EditorApplication.isPlayingOrWilChangePlaymode();".
Declaration
public static bool UnityEditor_EditorApplication_IsPlayingOrWillChangePlaymode()
Returns
UnityEditor_EditorUtility_DisplayDialog(string, string, string, string)
Equivalent to "UnityEditor.EditorUtility.DisplayDialog();".
Declaration
public static bool UnityEditor_EditorUtility_DisplayDialog(string title, string message, string validateButton, string cancelButton)
Parameters
Returns
UnityEditor_EditorUtility_SetDirty(Object)
Equivalent to "UnityEditor.EditorUtility.SetDirty(obj);".
Declaration
public static void UnityEditor_EditorUtility_SetDirty(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
UnityEditor_SceneManagement_EditorSceneManager_MarkSceneDirty(Scene)
Equivalent to "UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty(scene);".
Declaration
public static void UnityEditor_SceneManagement_EditorSceneManager_MarkSceneDirty(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|