C# Class UnityEditor.UI.RawImageEditor

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

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 RawImage 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
OnEnable ( ) : void

Private Methods

Method Description
Outer ( RawImage rawImage ) : Rect
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

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnInspectorGUI() public method

Implement specific RawImage 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