{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method FromRenderMeshArrayIndices | Entities Graphics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromRenderMeshArrayIndices

    FromRenderMeshArrayIndices(int, int, sbyte)

    Creates an instance of MaterialMeshInfo from material and mesh/sub-mesh indices in the corresponding RenderMeshArray.

    Declaration
    public static MaterialMeshInfo FromRenderMeshArrayIndices(int materialIndexInRenderMeshArray, int meshIndexInRenderMeshArray, sbyte submeshIndex = 0)
    Parameters
    Type Name Description
    int materialIndexInRenderMeshArray

    The material index in Materials.

    int meshIndexInRenderMeshArray

    The mesh index in Meshes.

    sbyte submeshIndex

    An optional submesh ID.

    Returns
    Type Description
    MaterialMeshInfo

    Returns the MaterialMeshInfo instance that contains the material and mesh indices.

    In This Article
    Back to top
    Copyright © 2023 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)