Class MaterialGraphPreviewGenerator
Inheritance
System.Object
MaterialGraphPreviewGenerator
Syntax
public class MaterialGraphPreviewGenerator : IDisposable
Constructors
MaterialGraphPreviewGenerator()
Declaration
public MaterialGraphPreviewGenerator()
Properties
quad
Declaration
public static Mesh quad { get; }
Property Value
Methods
CreateLight()
Declaration
protected static GameObject CreateLight()
Returns
| Type |
Description |
| GameObject |
|
Dispose()
Declaration
DoRenderPreview(RenderTexture, Material, Mesh, PreviewMode, Boolean, Single, MaterialPropertyBlock)
Declaration
public void DoRenderPreview(RenderTexture renderTexture, Material mat, Mesh mesh, PreviewMode mode, bool allowSRP, float time, MaterialPropertyBlock properties = null)
Parameters
| Type |
Name |
Description |
| RenderTexture |
renderTexture |
|
| Material |
mat |
|
| Mesh |
mesh |
|
| PreviewMode |
mode |
|
| System.Boolean |
allowSRP |
|
| System.Single |
time |
|
| MaterialPropertyBlock |
properties |
|