ecs.getAttribute()
ecs.getAttribute(name)
Description
Built-in components are also exposed as a property of ecs
.
Parameters
Property | Type | Default | Description |
---|---|---|---|
name | string | null | Name of the attribute |
Returns
Returns the attribute that has been registered with that name.
Example
ecs.Position === ecs.getAttribute('position')