Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.14 KB

getObjectList.markdown

File metadata and controls

38 lines (24 loc) · 1.14 KB

shader.getObjectList()

 
Type function
Library shader.*
Return value objectList, objectListNames
Visual Guide Visual Guide

Overview

Returns a table with all of the objects currently loaded into the Dynamic Shader and a table with only the names of those objects.

Syntax

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

Examples

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"