newModelData.lua 665 B

123456789101112131415161718192021222324252627282930
  1. return {
  2. summary = 'Create a new ModelData.',
  3. description = 'Loads a 3D model from a file. The supported 3D file formats are OBJ and glTF.',
  4. arguments = {
  5. filename = {
  6. type = 'string',
  7. description = 'The filename of the model to load.'
  8. },
  9. blob = {
  10. type = 'Blob',
  11. description = 'The Blob containing data for a model to decode.'
  12. }
  13. },
  14. returns = {
  15. modelData = {
  16. type = 'ModelData',
  17. description = 'The new ModelData.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'filename' },
  23. returns = { 'modelData' }
  24. },
  25. {
  26. arguments = { 'blob' },
  27. returns = { 'modelData' }
  28. }
  29. }
  30. }