Class Inspector
Syntax
public abstract class Inspector : IDisposable
Constructors
Declaration
protected Inspector(Metadata metadata)
Parameters
Fields
y
Declaration
Field Value
Properties
adaptiveWidth
Declaration
public static OverrideStack<bool> adaptiveWidth { get; }
Property Value
cacheHeight
Declaration
protected virtual bool cacheHeight { get; }
Property Value
defaultLabelStyle
Declaration
public static OverrideStack<GUIStyle> defaultLabelStyle { get; }
Property Value
e
Declaration
protected static Event e { get; }
Property Value
Declaration
public static OverrideStack<bool> expandTooltip { get; }
Property Value
full
Declaration
protected float full { get; }
Property Value
half
Declaration
protected float half { get; }
Property Value
indent
Declaration
protected virtual bool indent { get; }
Property Value
isHeightDirty
Declaration
public bool isHeightDirty { get; }
Property Value
Declaration
public Metadata metadata { get; }
Property Value
profile
Declaration
protected static bool profile { get; }
Property Value
safe
Declaration
protected virtual bool safe { get; }
Property Value
wideMode
Declaration
protected bool wideMode { get; }
Property Value
wideModeThreshold
Declaration
protected virtual float wideModeThreshold { get; }
Property Value
Methods
Declaration
public static void BeginBlock(Metadata metadata, Rect position)
Parameters
BeginLabeledBlock(Metadata, Rect, GUIContent, GUIStyle)
Declaration
public static Rect BeginLabeledBlock(Metadata metadata, Rect position, GUIContent label = null, GUIStyle labelStyle = null)
Parameters
Returns
BeginProfiling(String)
Declaration
protected void BeginProfiling(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Dispose()
Declaration
public virtual void Dispose()
Draw(Rect, GUIContent)
Declaration
public void Draw(Rect position, GUIContent label = null)
Parameters
DrawLayout(GUIContent, Single, RectOffset)
Declaration
public void DrawLayout(GUIContent label = null, float scrollbarTrigger = 14F, RectOffset offset = null)
Parameters
Declaration
public static bool EndBlock(Metadata metadata)
Parameters
Returns
EndProfiling(String)
Declaration
protected void EndProfiling(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
GetAdaptiveWidth()
Declaration
public virtual float GetAdaptiveWidth()
Returns
GetCachedHeight(Single, GUIContent, Inspector)
Declaration
public float GetCachedHeight(float width, GUIContent label, Inspector parentInspector)
Parameters
Returns
GetHeight(Single, GUIContent)
Declaration
protected abstract float GetHeight(float width, GUIContent label)
Parameters
Returns
GetLayoutPosition(GUIContent, Single, RectOffset)
Declaration
public Rect GetLayoutPosition(GUIContent label = null, float scrollbarTrigger = 14F, RectOffset offset = null)
Parameters
Returns
HeightWithLabel(Metadata, Single, Single, GUIContent, GUIStyle)
Declaration
public static float HeightWithLabel(Metadata metadata, float width, float height, GUIContent label = null, GUIStyle labelStyle = null)
Parameters
Returns
Initialize()
Declaration
public virtual void Initialize()
OnEditorPrefGUI(Rect, GUIContent)
Declaration
protected virtual void OnEditorPrefGUI(Rect position, GUIContent label)
Parameters
OnGUI(Rect, GUIContent)
Declaration
protected abstract void OnGUI(Rect position, GUIContent label)
Parameters
OnOpenVFX(Int32, Int32)
Declaration
[OnOpenAsset(-2147483648)]
public static bool OnOpenVFX(int instanceID, int line)
Parameters
Returns
PrefixLabel(Metadata, Rect, GUIContent, GUIStyle)
Declaration
public static Rect PrefixLabel(Metadata metadata, Rect position, GUIContent label = null, GUIStyle style = null)
Parameters
Returns
ProcessLabel(Metadata, GUIContent)
Declaration
public static GUIContent ProcessLabel(Metadata metadata, GUIContent label)
Parameters
Returns
Declaration
public static GUIStyle ProcessLabelStyle(Metadata metadata, GUIStyle labelStyle)
Parameters
Returns
ReclaimImplementationSelector(Rect)
Declaration
protected static Rect ReclaimImplementationSelector(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Returns
ResetProfiling(String)
Declaration
protected void ResetProfiling(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
SetHeightDirty()
Declaration
public void SetHeightDirty()
SkipEvent(Event, Rect)
Declaration
protected virtual bool SkipEvent(Event e, Rect position)
Parameters
Returns
WidthWithoutLabel(Metadata, Single, GUIContent)
Declaration
public static float WidthWithoutLabel(Metadata metadata, float width, GUIContent label = null)
Parameters
Returns
Extension Methods