C# Class UnityEditor.ModelInspector

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

Public Properties

Property Type Description
previewDir Vector2

Public Methods

Method Description
GetInfoString ( ) : string
HasPreviewGUI ( ) : bool
OnDestroy ( ) : void
OnPreviewGUI ( Rect r, GUIStyle background ) : void
OnPreviewSettings ( ) : void
RenderStaticPreview ( string assetPath, Object subAssets, int width, int height ) : Texture2D

Private Methods

Method Description
CreateWireframeMaterial ( ) : Material
DoRenderPreview ( ) : void
Init ( ) : void
OnAssetStoreInspectorGUI ( ) : void
RenderMeshPreview ( Mesh mesh, PreviewRenderUtility previewUtility, Material litMaterial, Material wireMaterial, Vector2 direction, int meshSubset ) : void
RenderMeshPreviewSkipCameraAndLighting ( Mesh mesh, Bounds bounds, PreviewRenderUtility previewUtility, Material litMaterial, Material wireMaterial, MaterialPropertyBlock customProperties, Vector2 direction, int meshSubset ) : void

Method Details

GetInfoString() public method

public GetInfoString ( ) : string
return string

HasPreviewGUI() public method

public HasPreviewGUI ( ) : bool
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnPreviewGUI() public method

public OnPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
return void

OnPreviewSettings() public method

public OnPreviewSettings ( ) : void
return void

RenderStaticPreview() public method

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

Property Details

previewDir public_oe property

public Vector2 previewDir
return Vector2