rojo/.cursor/rules/roblox/reference/engine/classes/CustomEventReceiver.yaml
2026-02-02 12:08:47 -06:00

121 lines
3.9 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: CustomEventReceiver
type: class
memory_category: Instances
summary: ''
description: ''
code_samples: []
inherits:
- Instance
descendants: []
tags:
- Deprecated
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
properties:
- name: CustomEventReceiver.Source
summary: |
Attaches the `Class.CustomEventReceiver` object to a `Class.CustomEvent`.
description: |
This property attaches the `Class.CustomEventReceiver` object to a
`Class.CustomEvent`.
code_samples: []
type: Instance
tags: []
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
security:
read: None
write: None
thread_safety: ReadSafe
category: Data
serialization:
can_load: true
can_save: true
capabilities: []
methods:
- name: CustomEventReceiver:GetCurrentValue
summary: |
Returns the current value of the receiver's
`Class.CustomEventReceiver.Source` property.
description: |
This function returns the current value of the receiver's
`Class.CustomEventReceiver.Source` property.
code_samples: []
parameters: []
returns:
- type: float
summary: ''
tags: []
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
security: None
thread_safety: Unsafe
capabilities: []
events:
- name: CustomEventReceiver.EventConnected
summary: |
Fires when the receiver is attached to a different `Class.CustomEvent`,
when the `Class.CustomEventReceiver.Source` property is changed.
description: |
This event fires when the receiver is attached to a different
`Class.CustomEvent`, when the `Class.CustomEventReceiver.Source` property
is changed.
code_samples: []
parameters:
- name: event
type: Instance
default:
summary: ''
tags: []
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
security: None
capabilities: []
- name: CustomEventReceiver.EventDisconnected
summary: |
Fires when the receiver is attached to a different `Class.CustomEvent`
instance when the `Class.CustomEventReceiver.Source` property is changed.
description: |
This event fires when the receiver is attached to a different
`Class.CustomEvent`, when the `Class.CustomEventReceiver.Source` property
is changed.
code_samples: []
parameters:
- name: event
type: Instance
default:
summary: ''
tags: []
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
security: None
capabilities: []
- name: CustomEventReceiver.SourceValueChanged
summary: |
Fires when the value of the CustomEvent's source is changed, passing the
CustomEvent's new value.
description: |
Fires when the value of the CustomEvent's source is changed, passing the
CustomEvent's new value.
code_samples: []
parameters:
- name: newValue
type: float
default:
summary: ''
tags: []
deprecation_message: |
`Class.CustomEvent|CustomEvents` have been superseded by
`Class.BindableEvent|BindableEvents` and should not be used in new work.
security: None
capabilities: []
callbacks: []