RemoveCustomEventListener

Method

Remove a listener for a custom visual scripting event.

Definition

public static void RemoveCustomEventListener(GameObject gameObject, Delegate handler)
public static void RemoveCustomEventListener(GameObject gameObject, Delegate handler)

Parameters

ParameterDescription
GameObject gameObject

The gameobject that we are listening on. This should be the same gameobject used to add the custom event listener.

Delegate handler

The delegate we are unsubscribing. This should be the delegate we received from AddCustomEventListener.