Type.isComponent
Returns true if the value is a Component instance attached to an entity.
Returns true if the value is a Component instance attached to an entity.
Use when iterating entity fields or handling Entity:give component-instance overload.
isComponent = Type.isComponent( t )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
t |
any | Object to check |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
isComponent |
boolean |