docs.unity.cn
    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
    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, Boolean)
    IsComponentEnabled<T>(Entity)
    SetComponentEnabled(SystemHandle, Boolean)
    IsComponentEnabled(Entity)
    SetBufferEnabled(Entity, Boolean)
    IsBufferEnabled(Entity)
    SetComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32, Boolean)
    IsComponentEnabled<T>(ref ComponentTypeHandle<T>, Int32)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023