getAnimationName.lua 551 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the name of an animation.',
  3. description = 'Returns the name of an animation.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the animation.'
  8. }
  9. },
  10. returns = {
  11. name = {
  12. type = 'string',
  13. description = 'The name of the animation.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = { 'index' },
  19. returns = { 'name' }
  20. }
  21. },
  22. notes = 'If the animation does not have a name, this function returns `nil`.',
  23. related = {
  24. 'Model:getAnimationName'
  25. }
  26. }