C# Class UnityEditor.PreviewRenderUtility

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
m_Camera UnityEngine.Camera
m_CameraFieldOfView float
m_Light UnityEngine.Light[]

Public Methods

Method Description
BeginPreview ( Rect r, GUIStyle previewBackground ) : void
BeginPreviewHDR ( Rect r, GUIStyle previewBackground ) : void
BeginStaticPreview ( Rect r ) : void
BeginStaticPreviewHDR ( Rect r ) : void
Cleanup ( ) : void
DrawMesh ( Mesh mesh, Matrix4x4 matrix, Material mat, int subMeshIndex ) : void
DrawMesh ( Mesh mesh, Matrix4x4 matrix, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties ) : void
DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex ) : void
DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties ) : void
DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties, Transform probeAnchor ) : void
EndAndDrawPreview ( Rect r ) : void
EndPreview ( ) : Texture
EndStaticPreview ( ) : Texture2D
GetScaleFactor ( float width, float height ) : float
PreviewRenderUtility ( ) : System
PreviewRenderUtility ( bool renderFullScene ) : System

Private Methods

Method Description
BeginPreview ( Rect r, GUIStyle previewBackground, bool hdr ) : void
BeginStaticPreview ( Rect r, bool hdr ) : void
GetPreviewSphere ( ) : Mesh
InitPreview ( Rect r, bool hdr ) : void

Method Details

BeginPreview() public method

public BeginPreview ( Rect r, GUIStyle previewBackground ) : void
r UnityEngine.Rect
previewBackground UnityEngine.GUIStyle
return void

BeginPreviewHDR() public method

public BeginPreviewHDR ( Rect r, GUIStyle previewBackground ) : void
r UnityEngine.Rect
previewBackground UnityEngine.GUIStyle
return void

BeginStaticPreview() public method

public BeginStaticPreview ( Rect r ) : void
r UnityEngine.Rect
return void

BeginStaticPreviewHDR() public method

public BeginStaticPreviewHDR ( Rect r ) : void
r UnityEngine.Rect
return void

Cleanup() public method

public Cleanup ( ) : void
return void

DrawMesh() public method

public DrawMesh ( Mesh mesh, Matrix4x4 matrix, Material mat, int subMeshIndex ) : void
mesh UnityEngine.Mesh
matrix UnityEngine.Matrix4x4
mat UnityEngine.Material
subMeshIndex int
return void

DrawMesh() public method

public DrawMesh ( Mesh mesh, Matrix4x4 matrix, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties ) : void
mesh UnityEngine.Mesh
matrix UnityEngine.Matrix4x4
mat UnityEngine.Material
subMeshIndex int
customProperties UnityEngine.MaterialPropertyBlock
return void

DrawMesh() public method

public DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex ) : void
mesh UnityEngine.Mesh
pos Vector3
rot UnityEngine.Quaternion
mat UnityEngine.Material
subMeshIndex int
return void

DrawMesh() public method

public DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties ) : void
mesh UnityEngine.Mesh
pos Vector3
rot UnityEngine.Quaternion
mat UnityEngine.Material
subMeshIndex int
customProperties UnityEngine.MaterialPropertyBlock
return void

DrawMesh() public method

public DrawMesh ( Mesh mesh, Vector3 pos, Quaternion rot, Material mat, int subMeshIndex, MaterialPropertyBlock customProperties, Transform probeAnchor ) : void
mesh UnityEngine.Mesh
pos Vector3
rot UnityEngine.Quaternion
mat UnityEngine.Material
subMeshIndex int
customProperties UnityEngine.MaterialPropertyBlock
probeAnchor UnityEngine.Transform
return void

EndAndDrawPreview() public method

public EndAndDrawPreview ( Rect r ) : void
r UnityEngine.Rect
return void

EndPreview() public method

public EndPreview ( ) : Texture
return UnityEngine.Texture

EndStaticPreview() public method

public EndStaticPreview ( ) : Texture2D
return UnityEngine.Texture2D

GetScaleFactor() public method

public GetScaleFactor ( float width, float height ) : float
width float
height float
return float

PreviewRenderUtility() public method

public PreviewRenderUtility ( ) : System
return System

PreviewRenderUtility() public method

public PreviewRenderUtility ( bool renderFullScene ) : System
renderFullScene bool
return System

Property Details

m_Camera public property

public Camera,UnityEngine m_Camera
return UnityEngine.Camera

m_CameraFieldOfView public property

public float m_CameraFieldOfView
return float

m_Light public property

public Light[],UnityEngine m_Light
return UnityEngine.Light[]