Getting Component
To get a component from an entity, you need to call theGet
method on the component field.
system/example_get_position.go
What’s
PlayerSearch
? Learn more in Searching for Entities with
Components.Setting Component
To set a component on an entity, you need to call theSet
method on the component field
with the new component data.
system/example_set_position.go