FindMeshes
Meshes whose path holds every word of a pattern.
Syntax
Section titled “Syntax”FindMeshes(pattern [, max])| Parameter | Type | |
|---|---|---|
pattern |
string | words to look for in the path, case-insensitive |
max |
number | at most this many (10) (optional) |
Returns
Section titled “Returns”table - a list of {id=, path=, name=}
Example
Section titled “Example”for _, m in ipairs(FindMeshes("barrel", 5)) do Log(m.id, m.name, m.path) endSee also
Section titled “See also”GetMeshPath · CreateProp · the Props group of the index
