Свойство | Type | Description | |
---|---|---|---|
m_ReferenceTargetIndex | int | ||
m_Targets | Object[] |
Méthode | Description | |
---|---|---|
DrawPreview ( |
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 ( ) : |
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 ( |
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 ( |
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.
|
Méthode | Description | |
---|---|---|
AbsRatioDiff ( float x, float y ) : float | ||
DrawPreview ( IPreviewable defaultPreview, |
||
GetGridDivision ( |
public DrawPreview ( |
||
previewArea | The available area to draw the preview. | |
Résultat | void |
public GetPreviewTitle ( ) : |
||
Résultat |
public Initialize ( Object targets ) : void | ||
targets | Object | The objects being previewed. |
Résultat | void |
public OnInteractivePreviewGUI ( |
||
r | Rectangle in which to draw the preview. | |
background | Background image. | |
Résultat | void |
public OnPreviewGUI ( |
||
r | Rectangle in which to draw the preview. | |
background | Background image. | |
Résultat | void |