Class EditorHelpers
Inheritance
EditorHelpers
Assembly: QFSW.BA.dll
Syntax
public static class EditorHelpers
Fields
ProjectRoot
Declaration
public static readonly string ProjectRoot
Field Value
Methods
DrawBanner(Texture2D, Single)
Declaration
public static void DrawBanner(Texture2D banner, float sizeMultiplier = 1F)
Parameters
| Type |
Name |
Description |
| UnityEngine.Texture2D |
banner |
|
| Single |
sizeMultiplier |
|
LoadAssetInSource<T>(String)
Declaration
public static T LoadAssetInSource<T>(string assetName)
where T : Object
Parameters
| Type |
Name |
Description |
| String |
assetName |
|
Returns
Type Parameters
LoadAssetInSource<T>(String, String)
Declaration
public static T LoadAssetInSource<T>(string assetName, string root)
where T : Object
Parameters
Returns
Type Parameters
MakePathProjectAbsolute(String)
Declaration
public static string MakePathProjectAbsolute(string path)
Parameters
| Type |
Name |
Description |
| String |
path |
|
Returns
MakePathProjectRelative(String)
Declaration
public static string MakePathProjectRelative(string path)
Parameters
| Type |
Name |
Description |
| String |
path |
|
Returns
OpenPathPanel(String, PathType, String)
Declaration
public static string OpenPathPanel(string title, PathType pathType, string extension = "")
Parameters
Returns
OpenPathPanel(String, PathType, String, String)
Declaration
public static string OpenPathPanel(string title, PathType pathType, string root, string extension = "")
Parameters
Returns
PathField(SerializedProperty, GUIContent, PathType, String, Boolean)
Declaration
public static void PathField(SerializedProperty prop, GUIContent label, PathType pathType, string extension = "", bool pathMustExist = true)
Parameters
| Type |
Name |
Description |
| UnityEditor.SerializedProperty |
prop |
|
| UnityEngine.GUIContent |
label |
|
| PathType |
pathType |
|
| String |
extension |
|
| Boolean |
pathMustExist |
|
PathField(GUIContent, String, PathType, String, Boolean)
Declaration
public static string PathField(GUIContent label, string path, PathType pathType, string extension = "", bool pathMustExist = true)
Parameters
Returns