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
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.