C# Class UnityEditor.UI.ImageEditor

Inheritance: GraphicEditor
显示文件 Open project: CarlosHBC/UnityDecompiled

Public Methods

Method Description
GetInfoString ( ) : string

A string cointaining the Image details to be used as a overlay on the component Preview.

HasPreviewGUI ( ) : bool

Can this component be Previewed in its current state?

OnInspectorGUI ( ) : void

Implement specific ImageEditor inspector GUI code here. If you want to simply extend the existing editor call the base OnInspectorGUI () before doing any custom GUI code.

OnPreviewGUI ( Rect rect, GUIStyle background ) : void

Custom preview for Image component.

Protected Methods

Method Description
OnDisable ( ) : void

See MonoBehaviour.OnDisable.

OnEnable ( ) : void
SpriteGUI ( ) : void

GUI for showing the Sprite property.

TypeGUI ( ) : void

GUI for showing the image type and associated settings.

Private Methods

Method Description
SetShowNativeSize ( bool instant ) : void

Method Details

GetInfoString() public method

A string cointaining the Image details to be used as a overlay on the component Preview.

public GetInfoString ( ) : string
return string

HasPreviewGUI() public method

Can this component be Previewed in its current state?

public HasPreviewGUI ( ) : bool
return bool

OnDisable() protected method

See MonoBehaviour.OnDisable.

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnInspectorGUI() public method

Implement specific ImageEditor inspector GUI code here. If you want to simply extend the existing editor call the base OnInspectorGUI () before doing any custom GUI code.

public OnInspectorGUI ( ) : void
return void

OnPreviewGUI() public method

Custom preview for Image component.

public OnPreviewGUI ( Rect rect, GUIStyle background ) : void
rect UnityEngine.Rect Rectangle in which to draw the preview.
background UnityEngine.GUIStyle Background image.
return void

SpriteGUI() protected method

GUI for showing the Sprite property.

protected SpriteGUI ( ) : void
return void

TypeGUI() protected method

GUI for showing the image type and associated settings.

protected TypeGUI ( ) : void
return void