CustomEvent

Show Deprecated
Deprecated

Summary

Methods

Events

Properties

Methods

GetAttachedReceivers

Instances

This function returns the CustomEventReceivers that are connected to the CustomEvent.


Returns

Instances

SetValue

void

This function sets the value of the CustomEvent and fires the CustomEventReceiver.SourceValueChanged event for all connected CustomEventReceiver|receivers.

Parameters

newValue: number

Returns

void

Events

ReceiverConnected

This event fires when a receiver is connected to the CustomEvent

Parameters

receiver: Instance

ReceiverDisconnected

This event fires when a receiver is disconnected from the CustomEvent.

Parameters

receiver: Instance