defineTag
此内容尚不支持你的语言。
defineTag(
name):ComponentDef<{ }>
Defined in: ecs/component.ts:428
Declare a component with no fields — a marker a query filters on. Returning the existing definition for a name already declared is deliberate: a tag carries no data, so re-declaring one cannot conflict with itself the way defineComponent can.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”ComponentDef<{ }>