Type | function |
Library | shader.* |
Return value | objectList, objectListNames |
Visual Guide | Visual Guide |
Returns a table with all of the objects currently loaded into the Dynamic Shader and a table with only the names of those objects.
shader.getObjectList( )
returns
- objectList: a table of all objects loaded to the shader via addObject()
- objectListNames: a table with only the names of the objects from objectList
local shader = require 'plugin.dynamic_shader'
-- example with return values
local objectList, objectListNames = shader.getObjectList( )
print(objectList[1])
-- OUTPUT: object
print(objectListNames[1])
-- OUTPUT: "object name"