docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BuiltinMaterials

    Provides access to the built-in materials that ProBuilder uses. In the Editor, see UnityEditor.ProBuilder.EditorMaterialUtility for access to the full array of materials and shaders.

    Inheritance
    object
    BuiltinMaterials
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.ProBuilder
    Assembly: Unity.ProBuilder.dll
    Syntax
    public static class BuiltinMaterials

    Fields

    dotShader

    Represents a fallback shader used to draw billboards when the graphics device does not support geometry shaders.

    Declaration
    public const string dotShader = "Hidden/ProBuilder/VertexShader"
    Field Value
    Type Description
    string
    See Also
    pointShader

    faceShader

    Represents the shader used to highlight Face selections.

    Declaration
    public const string faceShader = "Hidden/ProBuilder/FaceHighlight"
    Field Value
    Type Description
    string

    lineShader

    Represents the shader used to highlight Edge selections.

    Declaration
    public const string lineShader = "Hidden/ProBuilder/LineBillboard"
    Field Value
    Type Description
    string
    Remarks

    If the graphics device does not support geometry shaders, this shader doesn't compile. In that case, use wireShader.

    lineShaderMetal

    Represents a line shader for use with CreateEdgeBillboardMesh when geometry shaders are not available. Use lineShader where possible.

    Declaration
    public const string lineShaderMetal = "Hidden/ProBuilder/LineBillboardMetal"
    Field Value
    Type Description
    string

    pointShader

    Represents the shader used to draw camera facing billboards from a single vertex.

    Declaration
    public const string pointShader = "Hidden/ProBuilder/PointBillboard"
    Field Value
    Type Description
    string
    Remarks

    If the graphics device does not support geometry shaders, this shader doesn't compile. In that case, use dotShader.

    wireShader

    Represents the fallback shader used to draw lines when the graphics device does not support geometry shaders.

    Declaration
    public const string wireShader = "Hidden/ProBuilder/FaceHighlight"
    Field Value
    Type Description
    string
    See Also
    lineShader

    Properties

    defaultMaterial

    Represents the default ProBuilder material.

    Declaration
    public static Material defaultMaterial { get; }
    Property Value
    Type Description
    Material
    Remarks

    When using the Scriptable Render Pipeline this returns the default material for that pipeline.

    geometryShadersSupported

    Tests whether the current graphics device supports geometry shaders.

    Declaration
    public static bool geometryShadersSupported { get; }
    Property Value
    Type Description
    bool

    True if the current graphics device supports geometry shaders, and false if it does not.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)