docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddComponents

    AddComponents(Entity, in ComponentTypeSet)

    Obsolete. Use AddComponent(Entity, ComponentType) instead.

    Declaration
    [Obsolete("AddComponents() has been renamed to AddComponent(). AddComponents() will be removed in a future package release.", false)]
    public void AddComponents(Entity entity, in ComponentTypeSet componentTypeSet)
    Parameters
    Type Name Description
    Entity entity

    The entity to modify.

    ComponentTypeSet componentTypeSet

    The types of components to add.

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