CustomEvent

Show Deprecated
Deprecated

Summary

Properties

Events


Fires when a receiver is connected to the CustomEvent.


Fires when a receiver is disconnected from the CustomEvent.

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.

Properties

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

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