Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. listFiles

listFiles

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Load the list of file names in a folder (default is main level folder) separated by commas with an optional listing by search pattern (eg: *.png)

Parameters:

  • folder Optional
    • A string value
  • type Optional
    • A string value

returns a String (text) value

Example:

1
obj.listFiles(folder, type)
Tags
Was this article helpful to you? Yes No

How can we help?