C# Class UnityEngine.Events.UnityEvent

Inheritance: UnityEventBase
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
AddListener ( UnityAction call ) : void

Add a non persistent listener to the UnityEvent.

Invoke ( ) : void

Invoke all registered callbacks (runtime and persistent).

RemoveListener ( UnityAction call ) : void

Remove a non persistent listener from the UnityEvent.

Méthodes protégées

Méthode Description
FindMethod_Impl ( string name, object targetObj ) : MethodInfo

Private Methods

Méthode Description
AddPersistentListener ( UnityAction call ) : void
AddPersistentListener ( UnityAction call, UnityEventCallState callState ) : void
GetDelegate ( UnityAction action ) : BaseInvokableCall
GetDelegate ( object target, MethodInfo theFunction ) : BaseInvokableCall
RegisterPersistentListener ( int index, UnityAction call ) : void

Method Details

AddListener() public méthode

Add a non persistent listener to the UnityEvent.

public AddListener ( UnityAction call ) : void
call UnityAction Callback function.
Résultat void

FindMethod_Impl() protected méthode

protected FindMethod_Impl ( string name, object targetObj ) : MethodInfo
name string
targetObj object
Résultat System.Reflection.MethodInfo

Invoke() public méthode

Invoke all registered callbacks (runtime and persistent).

public Invoke ( ) : void
Résultat void

RemoveListener() public méthode

Remove a non persistent listener from the UnityEvent.

public RemoveListener ( UnityAction call ) : void
call UnityAction Callback function.
Résultat void