docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawMeshInstanced

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int, MaterialPropertyBlock)

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    public void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices, int count, MaterialPropertyBlock properties)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    MaterialPropertyBlock properties

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int, MaterialPropertyBlock)

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int)

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    public void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices, int count)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    int count

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[], int)

    DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[])

    Wraps DrawMeshInstanced on a CommandBuffer.

    Declaration
    public void DrawMeshInstanced(Mesh mesh, int submeshIndex, Material material, int shaderPass, Matrix4x4[] matrices)
    Parameters
    Type Name Description
    Mesh mesh

    See CommandBuffer documentation

    int submeshIndex

    See CommandBuffer documentation

    Material material

    See CommandBuffer documentation

    int shaderPass

    See CommandBuffer documentation

    Matrix4x4[] matrices

    See CommandBuffer documentation

    Implements
    ILowLevelCommandBuffer.DrawMeshInstanced(Mesh, int, Material, int, Matrix4x4[])
    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)