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

    Show / Hide Table of Contents

    Method AddComponents

    AddComponents(Entity, EntityManager, in RenderMeshDescription, RenderMeshArray, MaterialMeshInfo)

    Set the Entities Graphics component values to render the given entity using the given description. Any missing components will be added, which results in structural changes.

    Declaration
    public static void AddComponents(Entity entity, EntityManager entityManager, in RenderMeshDescription renderMeshDescription, RenderMeshArray renderMeshArray, MaterialMeshInfo materialMeshInfo = default)
    Parameters
    Type Name Description
    Entity entity

    The entity to set the component values for.

    EntityManager entityManager

    The EntityManager used to set the component values.

    RenderMeshDescription renderMeshDescription

    The description that determines how the entity is to be rendered.

    RenderMeshArray renderMeshArray

    The instance of the RenderMeshArray which contains mesh and material.

    MaterialMeshInfo materialMeshInfo

    The MaterialMeshInfo used to index into renderMeshArray.

    AddComponents(Entity, EntityManager, in RenderMeshDescription, MaterialMeshInfo)

    Set the Entities Graphics component values to render the given entity using the given description. Any missing components will be added, which results in structural changes.

    Declaration
    public static void AddComponents(Entity entity, EntityManager entityManager, in RenderMeshDescription renderMeshDescription, MaterialMeshInfo materialMeshInfo)
    Parameters
    Type Name Description
    Entity entity

    The entity to set the component values for.

    EntityManager entityManager

    The EntityManager used to set the component values.

    RenderMeshDescription renderMeshDescription

    The description that determines how the entity is to be rendered.

    MaterialMeshInfo materialMeshInfo

    The MaterialMeshInfo containing the mesh and material ids

    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)