{!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} Struct RenderMeshArray | Entities Graphics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RenderMeshArray

    A shared component that contains meshes and materials.

    Implements
    ISharedComponentData
    IQueryTypeParameter
    Namespace: Unity.Rendering
    Assembly: solution.dll
    Syntax
    public struct RenderMeshArray : ISharedComponentData, IQueryTypeParameter

    Constructors

    Name Description
    RenderMeshArray(Material[], Mesh[], MaterialMeshIndex[])

    Constructs an instance of RenderMeshArray from an array of materials and an array of meshes.

    Properties

    Name Description
    MaterialMeshIndices

    Accessor property for the MaterialMeshIndex array.

    Materials

    Accessor property for the materials array.

    Meshes

    Accessor property for the meshes array.

    Methods

    Name Description
    CombineRenderMeshArrays(List<RenderMeshArray>)

    Combines a list of RenderMeshArrays into one RenderMeshArray.

    CombineRenderMeshes(List<RenderMesh>)

    Combines a list of RenderMeshes into one RenderMeshArray.

    ComputeHash128()

    Calculates and returns the 128-bit hash value of the component contents.

    CreateWithDeduplication(List<Material>, List<Mesh>)

    Creates the new instance of the RenderMeshArray from given mesh and material lists, removing duplicate entries.

    Equals(object)

    Determines whether two object instances are equal based on their hashes.

    Equals(RenderMeshArray)

    Determines whether two object instances are equal based on their hashes.

    GetHash128()

    Returns a 128-bit hash that (almost) uniquely identifies the contents of the component.

    GetHashCode()

    Calculates the hash code for this object.

    GetMaterial(MaterialMeshInfo)

    Gets the material for given MaterialMeshInfo.

    GetMaterials(MaterialMeshInfo)

    Gets the materials for given MaterialMeshInfo.

    GetMesh(MaterialMeshInfo)

    Gets the mesh for given MaterialMeshInfo.

    ResetHash128()

    Recalculates the 128-bit hash value of the component.

    Operators

    Name Description
    operator ==(RenderMeshArray, RenderMeshArray)

    The equality operator == returns true if its operands are equal, false otherwise.

    operator !=(RenderMeshArray, RenderMeshArray)

    The not equality operator != returns false if its operands are equal, true otherwise.

    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)