docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetEnabledBitsOnAllChunks

    SetEnabledBitsOnAllChunks<T>(bool)

    Obsolete. Use SetComponentEnabled<T>(EntityQuery, bool) instead.

    Declaration
    [Obsolete("This method has been deprecated. Use EntityManager.SetComponentEnabled<T>(Unity.Entities.EntityQuery, bool) instead. (RemovedAfter Entities 1.0)")]
    public void SetEnabledBitsOnAllChunks<T>(bool value) where T : IEnableableComponent
    Parameters
    Type Name Description
    bool value

    If true, the component T will be enabled on all entities in all matching chunks. Otherwise, the component will be disabled on all components in all chunks.

    Type Parameters
    Name Description
    T

    The component type which should be enabled or disabled on all matching chunks. This type must be included in the query's required types, and must implement IEnableableComponent.

    Remarks

    Obsolete. Use SetComponentEnabled<T>(EntityQuery, bool) instead.

     Sets or clears the "is enabled" bit for the provided component on all entities in all chunks matched by the query.
     The current value of the bits are ignored; this function will enable disabled components on
     entities, even if the component being disabled would cause the entity to not match the query. If any jobs
     are currently running which read or write the target component, this function will block until they complete
     before performing the requested operation.
    
    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)