StringEventListener
Derives from EventListener<T, TChannel>
.
Description
Listens for events on a StringEventChannel
and invokes actions with a string
value when an event is raised.
Public Methods
RaiseEvent(bool)
- Manually raisesonEventRaised
with the string representation of thebool
value provided.RaiseEvent(int)
- Manually raisesonEventRaised
with the string representation of the signedint
value provided.RaiseEvent(float)
- Manually raisesonEventRaised
with the string representation of thefloat
value provided.RaiseEvent(double)
- Manually raisesonEventRaised
with the string representation of thedouble
value provided.
NOTE: Manually raising the event will only trigger the UnityEvent
actions on this component.
It will not raise an event on the Channel
itself.
NOTE: The RaiseEvent()
methods will format the string using the CultureInfo.CurrentCulture
.