CustomEvent

Show Deprecated
Deprecated

Summary

Properties

Methods


Returns the CustomEventReceivers that are connected to the CustomEvent.

SetValue(newValue: number): void  

Sets the value of the CustomEvent and fires the CustomEventReceiver.SourceValueChanged event for all connected CustomEventReciever|recievers.

Events


Fires when a receiver is connected to the CustomEvent.


Fires when a receiver is disconnected from the CustomEvent.

Properties

Methods

GetAttachedReceivers

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


Returns

SetValue

void

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

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