Class Editor
Assembly: UnityEditor.dll
Syntax
public class Editor : ScriptableObject, IPreviewable, IToolModeOwner
Properties
|
Improve this Doc
View Source
serializedObject
Declaration
public SerializedObject serializedObject { get; }
Property Value
|
Improve this Doc
View Source
target
Declaration
public Object target { get; set; }
Property Value
|
Improve this Doc
View Source
targets
Declaration
public Object[] targets { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateCachedEditor(Object, Type, ref Editor)
Declaration
public static void CreateCachedEditor(Object targetObject, Type editorType, ref Editor previousEditor)
Parameters
|
Improve this Doc
View Source
CreateCachedEditor(Object[], Type, ref Editor)
Declaration
public static void CreateCachedEditor(Object[] targetObjects, Type editorType, ref Editor previousEditor)
Parameters
Type |
Name |
Description |
Object[] |
targetObjects |
|
Type |
editorType |
|
Editor |
previousEditor |
|
|
Improve this Doc
View Source
CreateCachedEditorWithContext(Object, Object, Type, ref Editor)
Declaration
public static void CreateCachedEditorWithContext(Object targetObject, Object context, Type editorType, ref Editor previousEditor)
Parameters
|
Improve this Doc
View Source
CreateCachedEditorWithContext(Object[], Object, Type, ref Editor)
Declaration
public static void CreateCachedEditorWithContext(Object[] targetObjects, Object context, Type editorType, ref Editor previousEditor)
Parameters
|
Improve this Doc
View Source
CreateEditor(Object)
Declaration
[ExcludeFromDocs]
public static Editor CreateEditor(Object targetObject)
Parameters
Type |
Name |
Description |
Object |
targetObject |
|
Returns
|
Improve this Doc
View Source
CreateEditor(Object, Type)
Declaration
public static Editor CreateEditor(Object targetObject, [DefaultValue("null")] Type editorType)
Parameters
Type |
Name |
Description |
Object |
targetObject |
|
Type |
editorType |
|
Returns
|
Improve this Doc
View Source
CreateEditor(Object[])
Declaration
[ExcludeFromDocs]
public static Editor CreateEditor(Object[] targetObjects)
Parameters
Type |
Name |
Description |
Object[] |
targetObjects |
|
Returns
|
Improve this Doc
View Source
CreateEditor(Object[], Type)
Declaration
public static Editor CreateEditor(Object[] targetObjects, [DefaultValue("null")] Type editorType)
Parameters
Type |
Name |
Description |
Object[] |
targetObjects |
|
Type |
editorType |
|
Returns
|
Improve this Doc
View Source
CreateEditorWithContext(Object[], Object)
Declaration
[ExcludeFromDocs]
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context)
Parameters
Returns
CreateEditorWithContext(Object[], Object, Type)
Declaration
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context, [DefaultValue("null")] Type editorType)
Parameters
Returns
|
Improve this Doc
View Source
DrawDefaultInspector()
Declaration
public bool DrawDefaultInspector()
Returns
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
DrawPreview(Rect)
Declaration
public virtual void DrawPreview(Rect previewArea)
Parameters
Type |
Name |
Description |
Rect |
previewArea |
|
|
Improve this Doc
View Source
DrawPropertiesExcluding(SerializedObject, String[])
Declaration
protected static void DrawPropertiesExcluding(SerializedObject obj, params string[] propertyToExclude)
Parameters
|
Improve this Doc
View Source
GetInfoString()
Declaration
public virtual string GetInfoString()
Returns
|
Improve this Doc
View Source
GetPreviewTitle()
Declaration
public virtual GUIContent GetPreviewTitle()
Returns
|
Improve this Doc
View Source
HasPreviewGUI()
Declaration
public virtual bool HasPreviewGUI()
Returns
|
Improve this Doc
View Source
Initialize(Object[])
Declaration
public void Initialize(Object[] targets)
Parameters
Type |
Name |
Description |
Object[] |
targets |
|
|
Improve this Doc
View Source
MoveNextTarget()
Declaration
public bool MoveNextTarget()
Returns
|
Improve this Doc
View Source
Declaration
protected virtual void OnHeaderGUI()
|
Improve this Doc
View Source
OnInspectorGUI()
Declaration
public virtual void OnInspectorGUI()
|
Improve this Doc
View Source
OnInteractivePreviewGUI(Rect, GUIStyle)
Declaration
public virtual void OnInteractivePreviewGUI(Rect r, GUIStyle background)
Parameters
|
Improve this Doc
View Source
OnPreviewGUI(Rect, GUIStyle)
Declaration
public virtual void OnPreviewGUI(Rect r, GUIStyle background)
Parameters
|
Improve this Doc
View Source
OnPreviewSettings()
Declaration
public virtual void OnPreviewSettings()
|
Improve this Doc
View Source
ReloadPreviewInstances()
Declaration
public virtual void ReloadPreviewInstances()
|
Improve this Doc
View Source
RenderStaticPreview(String, Object[], Int32, Int32)
Declaration
public virtual Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
Parameters
Returns
|
Improve this Doc
View Source
Repaint()
Declaration
|
Improve this Doc
View Source
RequiresConstantRepaint()
Declaration
public virtual bool RequiresConstantRepaint()
Returns
|
Improve this Doc
View Source
ResetTarget()
Declaration
public void ResetTarget()
|
Improve this Doc
View Source
Declaration
protected virtual bool ShouldHideOpenButton()
Returns
|
Improve this Doc
View Source
UseDefaultMargins()
Declaration
public virtual bool UseDefaultMargins()
Returns
Events
|
Improve this Doc
View Source
Declaration
public static event Action<Editor> finishedDefaultHeaderGUI
Event Type
Extension Methods