Show / Hide Table of Contents

Class ParameterEvent

The type of Unity Event that can pass parameters.
可傳遞參數的 Unity Event 類型。

Inheritance
System.Object
UnityEngine.Events.UnityEventBase
UnityEngine.Events.UnityEvent<Parameter>
ParameterEvent
Namespace: Votanic
Assembly: Votanic.Core.dll
Syntax
[Serializable]
public class ParameterEvent : UnityEvent<Parameter>, ISerializationCallbackReceiver

Methods

AddListener(UnityAction)

Add a no parameter runtime callback as listener.
新增一個不含參數的實時回調函數為監聽器。

AddListener(Ping)

Declaration
public void AddListener(UnityAction unityAction)
Parameters
Type Name Description
UnityEngine.Events.UnityAction unityAction

The Method
方法

AddListener(UnityAction<Parameter>)

Add a with parameter runtime callback as listener.
新增一個含有參數的實時回調函數為監聽器。

AddListener(Ping)

Declaration
public void AddListener(UnityAction<Parameter> unityAction)
Parameters
Type Name Description
UnityEngine.Events.UnityAction<Parameter> unityAction

The Method
方法

Invoke(Parameter)

Invoke all unity actions.
呼叫所有 Unity 動作。

Invoke(new Parameter())

Declaration
public void Invoke(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Parameter
參數

RemoveAllListeners()

Remove all the runtime callbacks.
移除所有實時回調函數。

Declaration
public void RemoveAllListeners()

RemoveAllListeners(Boolean, Boolean)

Remove all the runtime callbacks.
移除所有實時回調函數。

Declaration
public void RemoveAllListeners(bool noParamter, bool withParamter)
Parameters
Type Name Description
System.Boolean noParamter

Remove all no parameter runtime callbacks
移除所有不含參數的實時回調函數

System.Boolean withParamter

Remove all with parameter runtime callbacks
移除所有含有參數的實時回調函數

RemoveListener(UnityAction)

Remove the last no parameter runtime callback.
移除最新一個不含參數的實時回調函數。

RemoveListener(Ping)

Declaration
public void RemoveListener(UnityAction unityAction)
Parameters
Type Name Description
UnityEngine.Events.UnityAction unityAction

The Method
方法

RemoveListener(UnityAction<Parameter>)

Remove the last with parameter runtime callback.
移除最新一個含有參數的實時回調函數。

RemoveListener(Ping)

Declaration
public void RemoveListener(UnityAction<Parameter> unityAction)
Parameters
Type Name Description
UnityEngine.Events.UnityAction<Parameter> unityAction

The Method
方法

In This Article
Back to top Generated by DocFX