C# Class UnityEditor.Editor

Inheritance: UnityEngine.ScriptableObject, IPreviewable
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Свойство Type Description
CanBeExpandedViaAFoldout bool
CleanupPropertyEditor void
CreateEditor Editor
DoDrawDefaultInspector bool
DoDrawDefaultInspector bool
DrawHeaderFromInsideHierarchy void
DrawHeaderGUI UnityEngine.Rect
DrawHeaderGUI UnityEngine.Rect
DrawHeaderHelpAndSettingsGUI void
GetOptimizedGUIBlock bool
GetOptimizedGUIBlockImplementation bool
GetSerializedObjectInternal SerializedObject
InternalSetHidden void
InternalSetTargets void
IsAppropriateFileOpenForEdit bool
IsAppropriateFileOpenForEdit bool
IsEnabled bool
IsOpenForEdit bool
IsOpenForEdit bool
OnAssetStoreInspectorGUI void
OnDisableINTERNAL void
OnForceReloadInspector void
OnHeaderControlsGUI void
OnHeaderIconGUI void
OnHeaderTitleGUI void
OnOptimizedInspectorGUI bool
OptimizedInspectorGUIImplementation bool

Méthodes publiques

Méthode Description
CreateCachedEditor ( Object targetObject, Type editorType, Editor &previousEditor ) : void
CreateEditor ( Object targetObject, [ editorType ) : Editor

Make a custom editor for targetObject or targetObjects.

DrawDefaultInspector ( ) : bool

Draw the built-in inspector.

DrawHeader ( ) : void

Call this function to draw the header of the editor.

DrawPreview ( Rect previewArea ) : void

The first entry point for Preview Drawing.

GetInfoString ( ) : string

Implement this method to show asset information on top of the asset preview.

GetPreviewTitle ( ) : GUIContent

Override this method if you want to change the label of the Preview area.

HasPreviewGUI ( ) : bool

Override this method in subclasses if you implement OnPreviewGUI.

Initialize ( Object targets ) : void
MoveNextTarget ( ) : bool
OnInspectorGUI ( ) : void

Implement this function to make a custom inspector.

OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void

Implement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector.

OnPreviewGUI ( Rect r, GUIStyle background ) : void

Implement to create your own custom preview for the preview area of the inspector, primary editor headers and the object selector.

OnPreviewSettings ( ) : void

Override this method if you want to show custom controls in the preview header.

ReloadPreviewInstances ( ) : void
RenderStaticPreview ( string assetPath, Object subAssets, int width, int height ) : Texture2D

Override this method if you want to render a static preview that shows.

Repaint ( ) : void

Repaint any inspectors that shows this editor.

RequiresConstantRepaint ( ) : bool

Does this edit require to be repainted constantly in its current state?

ResetTarget ( ) : void
UseDefaultMargins ( ) : bool

Override this method in subclasses to return false if you don't want default margins.

Méthodes protégées

Méthode Description
DrawPropertiesExcluding ( SerializedObject obj ) : void
OnHeaderGUI ( ) : void

Private Methods

Méthode Description
CanBeExpandedViaAFoldout ( ) : bool
CleanupPropertyEditor ( ) : void
CreateEditor ( Object targetObject ) : Editor
DoDrawDefaultInspector ( ) : bool
DoDrawDefaultInspector ( SerializedObject obj ) : bool
DrawHeaderFromInsideHierarchy ( ) : void
DrawHeaderGUI ( Editor editor, string header ) : Rect
DrawHeaderGUI ( Editor editor, string header, float leftMargin ) : Rect
DrawHeaderHelpAndSettingsGUI ( Rect r ) : void
GetOptimizedGUIBlock ( bool isDirty, bool isVisible, OptimizedGUIBlock &block, float &height ) : bool
GetOptimizedGUIBlockImplementation ( bool isDirty, bool isVisible, OptimizedGUIBlock &block, float &height ) : bool
GetSerializedObjectInternal ( ) : SerializedObject
InternalSetHidden ( bool hidden ) : void
InternalSetTargets ( Object t ) : void
IsAppropriateFileOpenForEdit ( Object assetObject ) : bool
IsAppropriateFileOpenForEdit ( Object assetObject, string &message ) : bool
IsEnabled ( ) : bool
IsOpenForEdit ( ) : bool
IsOpenForEdit ( string &message ) : bool
OnAssetStoreInspectorGUI ( ) : void
OnDisableINTERNAL ( ) : void
OnForceReloadInspector ( ) : void
OnHeaderControlsGUI ( ) : void
OnHeaderIconGUI ( Rect iconRect ) : void
OnHeaderTitleGUI ( Rect titleRect, string header ) : void
OnOptimizedInspectorGUI ( Rect contentRect ) : bool
OptimizedInspectorGUIImplementation ( Rect contentRect ) : bool

Method Details

CreateCachedEditor() public static méthode

public static CreateCachedEditor ( Object targetObject, Type editorType, Editor &previousEditor ) : void
targetObject Object
editorType System.Type
previousEditor Editor
Résultat void

CreateEditor() public static méthode

Make a custom editor for targetObject or targetObjects.

public static CreateEditor ( Object targetObject, [ editorType ) : Editor
targetObject Object
editorType [
Résultat Editor

DrawDefaultInspector() public méthode

Draw the built-in inspector.

public DrawDefaultInspector ( ) : bool
Résultat bool

DrawHeader() public méthode

Call this function to draw the header of the editor.

public DrawHeader ( ) : void
Résultat void

DrawPreview() public méthode

The first entry point for Preview Drawing.

public DrawPreview ( Rect previewArea ) : void
previewArea UnityEngine.Rect
Résultat void

DrawPropertiesExcluding() protected static méthode

protected static DrawPropertiesExcluding ( SerializedObject obj ) : void
obj SerializedObject
Résultat void

GetInfoString() public méthode

Implement this method to show asset information on top of the asset preview.

public GetInfoString ( ) : string
Résultat string

GetPreviewTitle() public méthode

Override this method if you want to change the label of the Preview area.

public GetPreviewTitle ( ) : GUIContent
Résultat UnityEngine.GUIContent

HasPreviewGUI() public méthode

Override this method in subclasses if you implement OnPreviewGUI.

public HasPreviewGUI ( ) : bool
Résultat bool

Initialize() public méthode

public Initialize ( Object targets ) : void
targets Object
Résultat void

MoveNextTarget() public méthode

public MoveNextTarget ( ) : bool
Résultat bool

OnHeaderGUI() protected méthode

protected OnHeaderGUI ( ) : void
Résultat void

OnInspectorGUI() public méthode

Implement this function to make a custom inspector.

public OnInspectorGUI ( ) : void
Résultat void

OnInteractivePreviewGUI() public méthode

Implement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector.

public OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect Rectangle in which to draw the preview.
background UnityEngine.GUIStyle Background image.
Résultat void

OnPreviewGUI() public méthode

Implement to create your own custom preview for the preview area of the inspector, primary editor headers and the object selector.

public OnPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect Rectangle in which to draw the preview.
background UnityEngine.GUIStyle Background image.
Résultat void

OnPreviewSettings() public méthode

Override this method if you want to show custom controls in the preview header.

public OnPreviewSettings ( ) : void
Résultat void

ReloadPreviewInstances() public méthode

public ReloadPreviewInstances ( ) : void
Résultat void

RenderStaticPreview() public méthode

Override this method if you want to render a static preview that shows.

public RenderStaticPreview ( string assetPath, Object subAssets, int width, int height ) : Texture2D
assetPath string
subAssets Object
width int
height int
Résultat UnityEngine.Texture2D

Repaint() public méthode

Repaint any inspectors that shows this editor.

public Repaint ( ) : void
Résultat void

RequiresConstantRepaint() public méthode

Does this edit require to be repainted constantly in its current state?

public RequiresConstantRepaint ( ) : bool
Résultat bool

ResetTarget() public méthode

public ResetTarget ( ) : void
Résultat void

UseDefaultMargins() public méthode

Override this method in subclasses to return false if you don't want default margins.

public UseDefaultMargins ( ) : bool
Résultat bool