You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Richard,
I have noticed that the componentAddedToEntity() function has no check is added component required by this family's NodeList as it made in componentRemovedFromEntity.
public function componentAddedToEntity( entity : Entity, componentClass : Class ) : void
{
addIfMatch( entity );
}
public function componentRemovedFromEntity( entity : Entity, componentClass : Class ) : void
{
if( components[componentClass] )
{
removeIfMatch( entity );
}
}
Maybe you skipped this check consciously because it can cause some issues?
Or function componentAddedToEntity can look like:
public function componentAddedToEntity( entity : Entity, componentClass : Class ) : void
{
if( components[componentClass] )
{
addIfMatch( entity );
}
}
The text was updated successfully, but these errors were encountered:
Hi Richard,
I have noticed that the componentAddedToEntity() function has no check is added component required by this family's NodeList as it made in componentRemovedFromEntity.
Maybe you skipped this check consciously because it can cause some issues?
Or function componentAddedToEntity can look like:
The text was updated successfully, but these errors were encountered: