Class MessageListener
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.VisualScripting
Syntax
[AddComponentMenu("")]
[IncludeInSettings(false)]
public abstract class MessageListener : MonoBehaviour
Properties
listenerTypes
Declaration
[Obsolete("listenerTypes is deprecated", false)]
public static Type[] listenerTypes { get; }
Property Value
Type | Description |
---|---|
Type[] |
Methods
AddTo(Type, GameObject)
Declaration
public static void AddTo(Type messageListenerType, GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
Type | messageListenerType | |
GameObject | gameObject |
AddTo(GameObject)
Declaration
[Obsolete("Use the overload with a messageListenerType parameter instead", false)]
public static void AddTo(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject |