Skip to content

TPEditorPackage

Tomasz Piowczyk edited this page Sep 8, 2018 · 1 revision

TPEditorStyles

public static GUIStyle Toolbar { get {} }
public static GUIStyle ToolbarSerachField { get {} }
public static GUIStyle ToolbarSearchCancel { get {} }

public static GUIStyle TextWrap {}
public static GUIStyle RichTextWrap {}
public static GUIStyle RichText {}
public static GUIStyle RichLabel {}
public static GUIStyle RichLeftButton {}
public static GUIStyle RichMidButton {}
public static GUIStyle RichRightButton {}

public static GUIContent GetIcon(UnityEditorIcons icon)

TPEditorTextures

public static Texture2D WhiteTexture {}
public static Texture2D BlackTexture {}
public static Texture2D GreyTexture {}
public static Texture2D RedTexture {}
public static Texture2D CyanTexture {}
public static Texture2D BlueTexture {}
public static Texture2D GreenTexture {}
public static Texture2D MagentaTexture {}
public static Texture2D YellowTexture {}

TPScriptlessEditor where T : UnityEngine.Object

public void ExcludeProperty(string property){}
public void ExcludeProperties(params string[] properties){}

TPEditorHelper

public const string InspectorScriptField = "m_Script";

public static T[] FindAssetsByType<T>() where T : Object{}
public static T[] FindAssetsByType<T>(System.Predicate<T> match) where T : Object{}
public static T FindAssetByType<T>() where T : Object{}
public static T FindAssetByType<T>(System.Predicate<T> match) where T : Object{}

TPEditorGUI

public static readonly float fieldHeight = 18;
public static readonly Vector2 Space  = new Vector2(10, 20);
public static readonly GUILayoutOption[] Fixed150Width;

public static string SearchField(string searchString){}

public static bool OnButton(string buttonText, Action onClick, GUIStyle buttonStyle = null, params GUILayoutOption[] buttonOptions){}
public static bool OnButton(Rect rect, string buttonText, Action onClick, GUIStyle buttonStyle = null){}

public static bool ToggleButton(string buttonText, bool value, Action onToggle, GUIStyle buttonStyle = null, params GUILayoutOption[] buttonOptions){}
public static bool ToggleButton(Rect rect, string buttonText, bool value, Action onToggle, GUIStyle buttonStyle = null){}

public static void DrawField(this SerializedObject serializedObject, string fieldName, bool includeChildren = true){}
public static void DrawField(this SerializedObject serializedObject, string fieldName, GUIContent guiContent, bool includeChildren = true){}

public static void StartBox(Color c){}
public static void StartBox(){}
public static void EndBox(){}

TPEditor : UnityEditor.Editor where T : Object

protected T Target { get {} }
protected T this[int index] { get {} }

protected GUIContent GUIContent(string text){}
protected GUIContent GUIContent(Texture image){}
protected GUIContent GUIContent(string text, Texture image){}
protected GUIContent GUIContent(string text, Texture image, string tooltip){}
protected GUIContent GUIContent(string text, string tooltip){}
protected GUIContent GUIContent(Texture image, string tooltip){}

Clone this wiki locally