Search Unity

Change Filters Don't Work on Classic Components?

Discussion in 'Entity Component System' started by IsaiahKelly, Jul 18, 2019.

  1. IsaiahKelly

    IsaiahKelly

    Joined:
    Nov 11, 2012
    Posts:
    418
    It appears that using SetFilterChanged() doesn't work when the component type isn't derived from IComponentData. Is this intentional or a bug? I would guess it's the former since the filter probably only triggers when using the SetComponent() command. Does anyone know of an optimal way to filter classic components that have changed? Do I just need to track these changes manually or try converting the values to IComponentData?