docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawMesh

    DrawMesh(Mesh, Matrix4x4, Material, int, int, MaterialPropertyBlock)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    public void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex, int shaderPass, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMesh(Mesh, Matrix4x4, Material, int, int, MaterialPropertyBlock)

    DrawMesh(Mesh, Matrix4x4, Material, int, int)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    public void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex, int shaderPass)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMesh(Mesh, Matrix4x4, Material, int, int)

    DrawMesh(Mesh, Matrix4x4, Material, int)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    public void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material, int submeshIndex)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMesh(Mesh, Matrix4x4, Material, int)

    DrawMesh(Mesh, Matrix4x4, Material)

    Wraps DrawMesh on a CommandBuffer.

    Declaration
    public void DrawMesh(Mesh mesh, Matrix4x4 matrix, Material material)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    Matrix4x4 matrix

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMesh(Mesh, Matrix4x4, Material)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)