docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IEnableableComponent

    An interface for a component type which allows the component to be enabled and disabled at runtime without a structural change.

    Namespace: Unity.Entities
    Assembly: solution.dll
    Syntax
    [RequireImplementors]
    public interface IEnableableComponent
    Remarks

    This interface is only valid when used in combination with IBufferElementData or IComponentData. While the extra overhead involved in processing enableable components is generally quite low, this interface should only be used on components that will actually be enabled/disabled by the application at relatively high frequency.

    See Also

    SetComponentEnabled<T>(SystemHandle, bool)
    IsComponentEnabled<T>(Entity)
    SetComponentEnabled(SystemHandle, bool)
    IsComponentEnabled(Entity)
    SetBufferEnabled(Entity, bool)
    IsBufferEnabled(Entity)
    SetComponentEnabled<T>(ref ComponentTypeHandle<T>, int, bool)
    IsComponentEnabled<T>(ref ComponentTypeHandle<T>, int)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023