getUserData.lua 415 B

123456789101112131415161718
  1. return {
  2. summary = 'Get the Shape\'s user data.',
  3. description = 'Returns the user data associated with the Shape.',
  4. arguments = {},
  5. returns = {
  6. data = {
  7. type = '*',
  8. description = 'The custom value associated with the Shape.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'data' }
  15. }
  16. },
  17. notes = 'User data can be useful to identify the Shape in callbacks.'
  18. }