Model
self:get_components
SharedRetrieves a list of all component paths on the model
Syntax
local components = self:get_components(
include_all = false
)Parameters
| Type | Name | Description |
|---|---|---|
bool | include_all | Determines which components are listed: • When true - components that are currently not rendered are listed as well• When false - only the components currently rendered on the model are listed |
Returns
| Type | Name | Description |
|---|---|---|
table | components | Array of component path strings |
Examples
local entity = core.model.create("character")
local components = entity:get_components()
core.engine.iprint(components)