C# Class UnityEditor.PreviewRenderUtility

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
m_Camera UnityEngine.Camera
m_CameraFieldOfView float
m_Light UnityEngine.Light[]

Méthodes publiques

Méthode 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

Méthode 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 méthode

public BeginPreview ( Rect r, GUIStyle previewBackground ) : void
r UnityEngine.Rect
previewBackground UnityEngine.GUIStyle
Résultat void

BeginPreviewHDR() public méthode

public BeginPreviewHDR ( Rect r, GUIStyle previewBackground ) : void
r UnityEngine.Rect
previewBackground UnityEngine.GUIStyle
Résultat void

BeginStaticPreview() public méthode

public BeginStaticPreview ( Rect r ) : void
r UnityEngine.Rect
Résultat void

BeginStaticPreviewHDR() public méthode

public BeginStaticPreviewHDR ( Rect r ) : void
r UnityEngine.Rect
Résultat void

Cleanup() public méthode

public Cleanup ( ) : void
Résultat void

DrawMesh() public méthode

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

DrawMesh() public méthode

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
Résultat void

DrawMesh() public méthode

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
Résultat void

DrawMesh() public méthode

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
Résultat void

DrawMesh() public méthode

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
Résultat void

EndAndDrawPreview() public méthode

public EndAndDrawPreview ( Rect r ) : void
r UnityEngine.Rect
Résultat void

EndPreview() public méthode

public EndPreview ( ) : Texture
Résultat UnityEngine.Texture

EndStaticPreview() public méthode

public EndStaticPreview ( ) : Texture2D
Résultat UnityEngine.Texture2D

GetScaleFactor() public méthode

public GetScaleFactor ( float width, float height ) : float
width float
height float
Résultat float

PreviewRenderUtility() public méthode

public PreviewRenderUtility ( ) : System
Résultat System

PreviewRenderUtility() public méthode

public PreviewRenderUtility ( bool renderFullScene ) : System
renderFullScene bool
Résultat System

Property Details

m_Camera public_oe property

public Camera,UnityEngine m_Camera
Résultat UnityEngine.Camera

m_CameraFieldOfView public_oe property

public float m_CameraFieldOfView
Résultat float

m_Light public_oe property

public Light[],UnityEngine m_Light
Résultat UnityEngine.Light[]