docs.unity.cn
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023