setUserData.lua 412 B

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