getMeshDrawMode.lua 518 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the draw mode of a mesh.',
  3. description = [[
  4. Returns the draw mode of a mesh. This controls how its vertices are connected together (points,
  5. lines, or triangles).
  6. ]],
  7. arguments = {
  8. mesh = {
  9. type = 'number',
  10. description = 'The index of a mesh.'
  11. }
  12. },
  13. returns = {
  14. mode = {
  15. type = 'ModelDrawMode',
  16. description = 'The draw mode of the mesh.'
  17. }
  18. },
  19. variants = {
  20. {
  21. arguments = { 'mesh' },
  22. returns = { 'mode' }
  23. }
  24. }
  25. }