C# Class UnityEngine.Events.UnityEvent

Inheritance: UnityEventBase
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
FindMethod_Impl ( string name, object targetObj ) : MethodInfo

Private Methods

Method 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 method

Add a non persistent listener to the UnityEvent.

public AddListener ( UnityAction call ) : void
call UnityAction Callback function.
return void

FindMethod_Impl() protected method

protected FindMethod_Impl ( string name, object targetObj ) : MethodInfo
name string
targetObj object
return System.Reflection.MethodInfo

Invoke() public method

Invoke all registered callbacks (runtime and persistent).

public Invoke ( ) : void
return void

RemoveListener() public method

Remove a non persistent listener from the UnityEvent.

public RemoveListener ( UnityAction call ) : void
call UnityAction Callback function.
return void