Class BuiltinMaterials
Access the built-in materials that ProBuilder uses.
Inheritance
Namespace: UnityEngine.ProBuilder
Syntax
public static class BuiltinMaterials
Fields
dotShader
Declaration
public const string dotShader = "Hidden/ProBuilder/VertexShader"
Field Value
Type | Description |
---|---|
System.String | A fallback shader used to draw billboards when the graphics device does not support geometry shaders. |
See Also
faceShader
Declaration
public const string faceShader = "Hidden/ProBuilder/FaceHighlight"
Field Value
Type | Description |
---|---|
System.String | A shader used to highlight face selections. |
lineShader
Declaration
public const string lineShader = "Hidden/ProBuilder/LineBillboard"
Field Value
Type | Description |
---|---|
System.String | A shader used to highlight edge selections. |
Remarks
If the graphics device does not support geometry shaders, this shader will not be compiled. Use wireShader in that case.
pointShader
Declaration
public const string pointShader = "Hidden/ProBuilder/PointBillboard"
Field Value
Type | Description |
---|---|
System.String | A shader used to draw camera facing billboards from a single vertex. |
Remarks
If the graphics device does not support geometry shaders, this shader will not be compiled. Use dotShader in that case.
wireShader
Declaration
public const string wireShader = "Hidden/ProBuilder/FaceHighlight"
Field Value
Type | Description |
---|---|
System.String | A fallback shader used to draw lines when the graphics device does not support geometry shaders. |
See Also
Properties
defaultMaterial
Declaration
public static Material defaultMaterial { get; }
Property Value
Type | Description |
---|---|
Material | The default ProBuilder material. |
Remarks
When using the Scriptable Render Pipeline this returns the default material for that pipeline.
geometryShadersSupported
Return true if the current graphics device supports geometry shaders, and false if it does not.
Declaration
public static bool geometryShadersSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |