C# 클래스 UnityEditor.ObjectPreview

상속: IPreviewable
파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_ReferenceTargetIndex int
m_Targets Object[]

공개 메소드들

메소드 설명
DrawPreview ( Rect previewArea ) : void

This is the first entry point for Preview Drawing.

GetInfoString ( ) : string

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

GetPreviewTitle ( ) : GUIContent

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

HasPreviewGUI ( ) : bool

Can this component be Previewed in its current state?

Initialize ( Object targets ) : void

Called when the Preview gets created with the objects being previewed.

MoveNextTarget ( ) : bool

Called to iterate through the targets, this will be used when previewing more than one target.

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

Called to Reset the target before iterating through them.

비공개 메소드들

메소드 설명
AbsRatioDiff ( float x, float y ) : float
DrawPreview ( IPreviewable defaultPreview, Rect previewArea, Object targets ) : void
GetGridDivision ( Rect rect, int minimumNr, int labelHeight ) : int[]

메소드 상세

DrawPreview() 공개 메소드

This is the first entry point for Preview Drawing.

public DrawPreview ( Rect previewArea ) : void
previewArea UnityEngine.Rect The available area to draw the preview.
리턴 void

GetInfoString() 공개 메소드

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

public GetInfoString ( ) : string
리턴 string

GetPreviewTitle() 공개 메소드

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

public GetPreviewTitle ( ) : GUIContent
리턴 UnityEngine.GUIContent

HasPreviewGUI() 공개 메소드

Can this component be Previewed in its current state?

public HasPreviewGUI ( ) : bool
리턴 bool

Initialize() 공개 메소드

Called when the Preview gets created with the objects being previewed.

public Initialize ( Object targets ) : void
targets Object The objects being previewed.
리턴 void

MoveNextTarget() 공개 메소드

Called to iterate through the targets, this will be used when previewing more than one target.

public MoveNextTarget ( ) : bool
리턴 bool

OnInteractivePreviewGUI() 공개 메소드

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.
리턴 void

OnPreviewGUI() 공개 메소드

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.
리턴 void

OnPreviewSettings() 공개 메소드

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

public OnPreviewSettings ( ) : void
리턴 void

ReloadPreviewInstances() 공개 메소드

public ReloadPreviewInstances ( ) : void
리턴 void

ResetTarget() 공개 메소드

Called to Reset the target before iterating through them.

public ResetTarget ( ) : void
리턴 void

프로퍼티 상세

m_ReferenceTargetIndex 보호되어 있는 프로퍼티

protected int m_ReferenceTargetIndex
리턴 int

m_Targets 보호되어 있는 프로퍼티

protected Object[] m_Targets
리턴 Object[]