Model
self:get_components
Shared
Retrieves a list of all component paths on the model
Syntax
local components = self:get_components()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
table | components | Array of component path strings |
Examples
local entity = model.create("character")
local components = entity:get_components()
engine.iprint(components)