Skip to main content

ISignalReceiverMethods

Trait ISignalReceiverMethods 

Source
pub trait ISignalReceiverMethods: ISignalReceiver {
Show 14 methods // Provided methods fn on_notify( self, origin: impl Into<Playable>, notification: impl Into<INotification>, context: impl Into<Object>, ) { ... } fn add_reaction( self, asset: impl Into<SignalAsset>, reaction: impl Into<UnityEvent>, ) { ... } fn add_empty_reaction(self, reaction: impl Into<UnityEvent>) -> i32 { ... } fn remove(self, asset: impl Into<SignalAsset>) { ... } fn get_registered_signals(self) -> IEnumerable_1<SignalAsset> { ... } fn get_reaction(self, key: impl Into<SignalAsset>) -> UnityEvent { ... } fn count(self) -> i32 { ... } fn change_signal_at_index( self, idx: impl Into<i32>, new_key: impl Into<SignalAsset>, ) { ... } fn remove_at_index(self, idx: impl Into<i32>) { ... } fn change_reaction_at_index( self, idx: impl Into<i32>, reaction: impl Into<UnityEvent>, ) { ... } fn get_reaction_at_index(self, idx: impl Into<i32>) -> UnityEvent { ... } fn get_signal_asset_at_index(self, idx: impl Into<i32>) -> SignalAsset { ... } fn on_enable(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_notify( self, origin: impl Into<Playable>, notification: impl Into<INotification>, context: impl Into<Object>, )

OnNotify(crate::unity_engine::playables::playable::Playable, crate::unity_engine::playables::inotification::INotification, crate::system::object::Object) overload

Source

fn add_reaction( self, asset: impl Into<SignalAsset>, reaction: impl Into<UnityEvent>, )

AddReaction(crate::unity_engine::timeline::signalasset::SignalAsset, crate::unity_engine::events::unityevent::UnityEvent) overload

Source

fn add_empty_reaction(self, reaction: impl Into<UnityEvent>) -> i32

AddEmptyReaction(crate::unity_engine::events::unityevent::UnityEvent) overload

Source

fn remove(self, asset: impl Into<SignalAsset>)

Remove(crate::unity_engine::timeline::signalasset::SignalAsset) overload

Source

fn get_registered_signals(self) -> IEnumerable_1<SignalAsset>

GetRegisteredSignals() overload

Source

fn get_reaction(self, key: impl Into<SignalAsset>) -> UnityEvent

GetReaction(crate::unity_engine::timeline::signalasset::SignalAsset) overload

Source

fn count(self) -> i32

Count() overload

Source

fn change_signal_at_index( self, idx: impl Into<i32>, new_key: impl Into<SignalAsset>, )

ChangeSignalAtIndex(i32, crate::unity_engine::timeline::signalasset::SignalAsset) overload

Source

fn remove_at_index(self, idx: impl Into<i32>)

RemoveAtIndex(i32) overload

Source

fn change_reaction_at_index( self, idx: impl Into<i32>, reaction: impl Into<UnityEvent>, )

ChangeReactionAtIndex(i32, crate::unity_engine::events::unityevent::UnityEvent) overload

Source

fn get_reaction_at_index(self, idx: impl Into<i32>) -> UnityEvent

GetReactionAtIndex(i32) overload

Source

fn get_signal_asset_at_index(self, idx: impl Into<i32>) -> SignalAsset

GetSignalAssetAtIndex(i32) overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ISignalReceiver> ISignalReceiverMethods for __T

Available on crate feature unity_engine-timeline-signalreceiver only.