Show / Hide Table of Contents

Class UnityEventBase

Inheritance
Object
UnityEventBase
UnityEvent
UnityEvent<T0>
UnityEvent<T0, T1>
UnityEvent<T0, T1, T2>
UnityEvent<T0, T1, T2, T3>
Implements
ISerializationCallbackReceiver
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Events
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
Type Name Description
Object targetObj
MethodInfo method
| Improve this Doc View Source

FindMethod_Impl(String, Object)

Declaration
protected abstract MethodInfo FindMethod_Impl(string name, object targetObj)
Parameters
Type Name Description
String name
Object targetObj
Returns
Type Description
MethodInfo
| Improve this Doc View Source

GetPersistentEventCount()

Declaration
public int GetPersistentEventCount()
Returns
Type Description
Int32
| Improve this Doc View Source

GetPersistentMethodName(Int32)

Declaration
public string GetPersistentMethodName(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
String
| Improve this Doc View Source

GetPersistentTarget(Int32)

Declaration
public Object GetPersistentTarget(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
Object
| Improve this Doc View Source

GetValidMethodInfo(Object, String, Type[])

Declaration
public static MethodInfo GetValidMethodInfo(object obj, string functionName, Type[] argumentTypes)
Parameters
Type Name Description
Object obj
String functionName
Type[] argumentTypes
Returns
Type Description
MethodInfo
| 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
Type Name Description
Int32 index
Object targetObj
MethodInfo method
| 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
Type Name Description
Object targetObj
MethodInfo method
| Improve this Doc View Source

SetPersistentListenerState(Int32, UnityEventCallState)

Declaration
public void SetPersistentListenerState(int index, UnityEventCallState state)
Parameters
Type Name Description
Int32 index
UnityEventCallState state
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
| Improve this Doc View Source

ValidateRegistration(MethodInfo, Object, PersistentListenerMode)

Declaration
protected bool ValidateRegistration(MethodInfo method, object targetObj, PersistentListenerMode mode)
Parameters
Type Name Description
MethodInfo method
Object targetObj
PersistentListenerMode mode
Returns
Type Description
Boolean
| Improve this Doc View Source

ValidateRegistration(MethodInfo, Object, PersistentListenerMode, Type)

Declaration
protected bool ValidateRegistration(MethodInfo method, object targetObj, PersistentListenerMode mode, Type argumentType)
Parameters
Type Name Description
MethodInfo method
Object targetObj
PersistentListenerMode mode
Type argumentType
Returns
Type Description
Boolean

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

ISerializationCallbackReceiver

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX