Class UnityEventBase
Inheritance
UnityEventBase
Assembly: UnityEngine.dll
Syntax
[Serializable]
public abstract class UnityEventBase : ISerializationCallbackReceiver
Constructors
|
Improve this Doc
View Source
UnityEventBase()
Declaration
protected UnityEventBase()
Methods
|
Improve this Doc
View Source
AddListener(Object, MethodInfo)
Declaration
protected void AddListener(object targetObj, MethodInfo method)
Parameters
|
Improve this Doc
View Source
FindMethod_Impl(String, Object)
Declaration
protected abstract MethodInfo FindMethod_Impl(string name, object targetObj)
Parameters
Returns
|
Improve this Doc
View Source
GetPersistentEventCount()
Declaration
public int GetPersistentEventCount()
Returns
|
Improve this Doc
View Source
GetPersistentMethodName(Int32)
Declaration
public string GetPersistentMethodName(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetPersistentTarget(Int32)
Declaration
public Object GetPersistentTarget(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetValidMethodInfo(Object, String, Type[])
Declaration
public static MethodInfo GetValidMethodInfo(object obj, string functionName, Type[] argumentTypes)
Parameters
Returns
|
Improve this Doc
View Source
Invoke(Object[])
Declaration
protected void Invoke(object[] parameters)
Parameters
Type |
Name |
Description |
Object[] |
parameters |
|
|
Improve this Doc
View Source
RegisterPersistentListener(Int32, Object, MethodInfo)
Declaration
protected void RegisterPersistentListener(int index, object targetObj, MethodInfo method)
Parameters
|
Improve this Doc
View Source
RemoveAllListeners()
Declaration
public void RemoveAllListeners()
|
Improve this Doc
View Source
RemoveListener(Object, MethodInfo)
Declaration
protected void RemoveListener(object targetObj, MethodInfo method)
Parameters
|
Improve this Doc
View Source
SetPersistentListenerState(Int32, UnityEventCallState)
Declaration
public void SetPersistentListenerState(int index, UnityEventCallState state)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ValidateRegistration(MethodInfo, Object, PersistentListenerMode)
Declaration
protected bool ValidateRegistration(MethodInfo method, object targetObj, PersistentListenerMode mode)
Parameters
Returns
|
Improve this Doc
View Source
ValidateRegistration(MethodInfo, Object, PersistentListenerMode, Type)
Declaration
protected bool ValidateRegistration(MethodInfo method, object targetObj, PersistentListenerMode mode, Type argumentType)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
ISerializationCallbackReceiver.OnAfterDeserialize()
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
|
Improve this Doc
View Source
ISerializationCallbackReceiver.OnBeforeSerialize()
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()
Implements
Extension Methods