Show / Hide Table of Contents

Class Editor

Inheritance
Object
Object
ScriptableObject
Editor
CameraEditor
AssetImporterEditor
UIElementsEditor
GridBrushEditorBase
LightEditor
MaterialEditor
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance(String)
ScriptableObject.CreateInstance(Type)
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public class Editor : ScriptableObject, IPreviewable, IToolModeOwner

Properties

| Improve this Doc View Source

serializedObject

Declaration
public SerializedObject serializedObject { get; }
Property Value
Type Description
SerializedObject
| Improve this Doc View Source

target

Declaration
public Object target { get; set; }
Property Value
Type Description
Object
| Improve this Doc View Source

targets

Declaration
public Object[] targets { get; }
Property Value
Type Description
Object[]

Methods

| Improve this Doc View Source

CreateCachedEditor(Object, Type, ref Editor)

Declaration
public static void CreateCachedEditor(Object targetObject, Type editorType, ref Editor previousEditor)
Parameters
Type Name Description
Object targetObject
Type editorType
Editor previousEditor
| 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
Type Name Description
Object targetObject
Object context
Type editorType
Editor previousEditor
| 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
Type Name Description
Object[] targetObjects
Object context
Type editorType
Editor previousEditor
| Improve this Doc View Source

CreateEditor(Object)

Declaration
[ExcludeFromDocs]
public static Editor CreateEditor(Object targetObject)
Parameters
Type Name Description
Object targetObject
Returns
Type Description
Editor
| 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
Type Description
Editor
| Improve this Doc View Source

CreateEditor(Object[])

Declaration
[ExcludeFromDocs]
public static Editor CreateEditor(Object[] targetObjects)
Parameters
Type Name Description
Object[] targetObjects
Returns
Type Description
Editor
| 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
Type Description
Editor
| Improve this Doc View Source

CreateEditorWithContext(Object[], Object)

Declaration
[ExcludeFromDocs]
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context)
Parameters
Type Name Description
Object[] targetObjects
Object context
Returns
Type Description
Editor

CreateEditorWithContext(Object[], Object, Type)

Declaration
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context, [DefaultValue("null")] Type editorType)
Parameters
Type Name Description
Object[] targetObjects
Object context
Type editorType
Returns
Type Description
Editor
| Improve this Doc View Source

DrawDefaultInspector()

Declaration
public bool DrawDefaultInspector()
Returns
Type Description
Boolean
| Improve this Doc View Source

DrawHeader()

Declaration
public void DrawHeader()
| 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
Type Name Description
SerializedObject obj
String[] propertyToExclude
| Improve this Doc View Source

GetInfoString()

Declaration
public virtual string GetInfoString()
Returns
Type Description
String
| Improve this Doc View Source

GetPreviewTitle()

Declaration
public virtual GUIContent GetPreviewTitle()
Returns
Type Description
GUIContent
| Improve this Doc View Source

HasPreviewGUI()

Declaration
public virtual bool HasPreviewGUI()
Returns
Type Description
Boolean
| 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
Type Description
Boolean
| Improve this Doc View Source

OnHeaderGUI()

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
Type Name Description
Rect r
GUIStyle background
| Improve this Doc View Source

OnPreviewGUI(Rect, GUIStyle)

Declaration
public virtual void OnPreviewGUI(Rect r, GUIStyle background)
Parameters
Type Name Description
Rect r
GUIStyle background
| 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
Type Name Description
String assetPath
Object[] subAssets
Int32 width
Int32 height
Returns
Type Description
Texture2D
| Improve this Doc View Source

Repaint()

Declaration
public void Repaint()
| Improve this Doc View Source

RequiresConstantRepaint()

Declaration
public virtual bool RequiresConstantRepaint()
Returns
Type Description
Boolean
| Improve this Doc View Source

ResetTarget()

Declaration
public void ResetTarget()
| Improve this Doc View Source

ShouldHideOpenButton()

Declaration
protected virtual bool ShouldHideOpenButton()
Returns
Type Description
Boolean
| Improve this Doc View Source

UseDefaultMargins()

Declaration
public virtual bool UseDefaultMargins()
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

finishedDefaultHeaderGUI

Declaration
public static event Action<Editor> finishedDefaultHeaderGUI
Event Type
Type Description
Action<Editor>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX