setUserData.lua 422 B

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