hasComponent

@JvmStatic
fun <T : Component> hasComponent(componentClass: Class<T>): EntityQueryCondition

Creates a condition to check whether an entity has a component of the specified type.

Return

An EntityQueryCondition that encapsulates the condition for checking whether an entity has the specified component.

Parameters

T

The component type to check.

componentClass

The Class object of the component.