docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EventUnit<TArgs>

    Inheritance
    object
    GraphElement<FlowGraph>
    Unit
    EventUnit<TArgs>
    GameObjectEventUnit<TArgs>
    GlobalEventUnit<TArgs>
    MachineEventUnit<TArgs>
    ManualEventUnit<TArgs>
    Implements
    IEventUnit
    IUnit
    IGraphElementWithDebugData
    IGraphEventListener
    IGraphElementWithData
    IGraphElement
    IGraphItem
    INotifiedCollectionItem
    IDisposable
    IPrewarmable
    IAotStubbable
    IIdentifiable
    IAnalyticsIdentifiable
    IGraphEventHandler<TArgs>
    Inherited Members
    Unit.CreateDebugData()
    Unit.AfterAdd()
    Unit.BeforeRemove()
    Unit.Instantiate(GraphReference)
    Unit.CopyFrom(Unit)
    Unit.canDefine
    Unit.failedToDefine
    Unit.isDefined
    Unit.AfterDefine()
    Unit.BeforeUndefine()
    Unit.EnsureDefined()
    Unit.Define()
    Unit.RemoveUnconnectedInvalidPorts()
    Unit.controlInputs
    Unit.controlOutputs
    Unit.valueInputs
    Unit.valueOutputs
    Unit.invalidInputs
    Unit.invalidOutputs
    Unit.inputs
    Unit.outputs
    Unit.validInputs
    Unit.validOutputs
    Unit.ports
    Unit.invalidPorts
    Unit.validPorts
    Unit.onPortsChanged
    Unit.PortsChanged()
    Unit.defaultValues
    Unit.relations
    Unit.connections
    Unit.Disconnect()
    Unit.isControlRoot
    Unit.EnsureUniqueInput(string)
    Unit.EnsureUniqueOutput(string)
    Unit.ControlInput(string, Func<Flow, ControlOutput>)
    Unit.ControlInputCoroutine(string, Func<Flow, IEnumerator>)
    Unit.ControlInputCoroutine(string, Func<Flow, ControlOutput>, Func<Flow, IEnumerator>)
    Unit.ControlOutput(string)
    Unit.ValueInput(Type, string)
    Unit.ValueInput<T>(string)
    Unit.ValueInput<T>(string, T)
    Unit.ValueOutput(Type, string)
    Unit.ValueOutput(Type, string, Func<Flow, object>)
    Unit.ValueOutput<T>(string)
    Unit.ValueOutput<T>(string, Func<Flow, T>)
    Unit.Requirement(ValueInput, ControlInput)
    Unit.Requirement(ValueInput, ValueOutput)
    Unit.Assignment(ControlInput, ValueOutput)
    Unit.Succession(ControlInput, ControlOutput)
    Unit.position
    Unit.definitionException
    Unit.GetAnalyticsIdentifier()
    GraphElement<FlowGraph>.guid
    GraphElement<FlowGraph>.BeforeAdd()
    GraphElement<FlowGraph>.AfterRemove()
    GraphElement<FlowGraph>.Dispose()
    GraphElement<FlowGraph>.InstantiateNest()
    GraphElement<FlowGraph>.UninstantiateNest()
    GraphElement<FlowGraph>.dependencyOrder
    GraphElement<FlowGraph>.HandleDependencies()
    GraphElement<FlowGraph>.graph
    GraphElement<FlowGraph>.deserializationDependencies
    GraphElement<FlowGraph>.GetAotStubs(HashSet<object>)
    GraphElement<FlowGraph>.Prewarm()
    GraphElement<FlowGraph>.CopyFrom(GraphElement<FlowGraph>)
    GraphElement<FlowGraph>.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Flow.dll
    Syntax
    [SerializationVersion("A", new Type[] { })]
    public abstract class EventUnit<TArgs> : Unit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphEventListener, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventHandler<TArgs>
    Type Parameters
    Name Description
    TArgs

    Properties

    coroutine

    Run this event in a coroutine, enabling asynchronous flow like wait nodes.

    Declaration
    [Serialize]
    [Inspectable]
    [InspectorExpandTooltip]
    public bool coroutine { get; set; }
    Property Value
    Type Description
    bool

    register

    Declaration
    [DoNotSerialize]
    protected abstract bool register { get; }
    Property Value
    Type Description
    bool

    trigger

    Declaration
    [DoNotSerialize]
    public ControlOutput trigger { get; }
    Property Value
    Type Description
    ControlOutput

    Methods

    AssignArguments(Flow, TArgs)

    Declaration
    protected virtual void AssignArguments(Flow flow, TArgs args)
    Parameters
    Type Name Description
    Flow flow
    TArgs args

    CompareNames(Flow, ValueInput, string)

    Declaration
    protected static bool CompareNames(Flow flow, ValueInput namePort, string calledName)
    Parameters
    Type Name Description
    Flow flow
    ValueInput namePort
    string calledName
    Returns
    Type Description
    bool

    CreateData()

    Declaration
    public virtual IGraphElementData CreateData()
    Returns
    Type Description
    IGraphElementData

    Definition()

    Declaration
    protected override void Definition()
    Overrides
    Unit.Definition()

    GetHook(GraphReference)

    Declaration
    public virtual EventHook GetHook(GraphReference reference)
    Parameters
    Type Name Description
    GraphReference reference
    Returns
    Type Description
    EventHook

    IsListening(GraphPointer)

    Declaration
    public bool IsListening(GraphPointer pointer)
    Parameters
    Type Name Description
    GraphPointer pointer
    Returns
    Type Description
    bool

    ShouldTrigger(Flow, TArgs)

    Declaration
    protected virtual bool ShouldTrigger(Flow flow, TArgs args)
    Parameters
    Type Name Description
    Flow flow
    TArgs args
    Returns
    Type Description
    bool

    StartListening(GraphStack)

    Declaration
    public virtual void StartListening(GraphStack stack)
    Parameters
    Type Name Description
    GraphStack stack

    StopListening(GraphStack)

    Declaration
    public virtual void StopListening(GraphStack stack)
    Parameters
    Type Name Description
    GraphStack stack

    Trigger(GraphReference, TArgs)

    Declaration
    public void Trigger(GraphReference reference, TArgs args)
    Parameters
    Type Name Description
    GraphReference reference
    TArgs args

    Uninstantiate(GraphReference)

    Declaration
    public override void Uninstantiate(GraphReference instance)
    Parameters
    Type Name Description
    GraphReference instance
    Overrides
    Unit.Uninstantiate(GraphReference)

    Implements

    IEventUnit
    IUnit
    IGraphElementWithDebugData
    IGraphEventListener
    IGraphElementWithData
    IGraphElement
    IGraphItem
    INotifiedCollectionItem
    IDisposable
    IPrewarmable
    IAotStubbable
    IIdentifiable
    IAnalyticsIdentifiable
    IGraphEventHandler<TArgs>

    Extension Methods

    Cloning.Clone(object, ICloner, bool)
    Cloning.Clone(object, ICloner, bool)
    Cloning.CloneViaFakeSerialization(object)
    Cloning.CloneViaFakeSerialization(object)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo(object, Type)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.ConvertTo<T>(object)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo(object, Type, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    ConversionUtility.IsConvertibleTo<T>(object, bool)
    Serialization.Serialize(object, bool)
    Serialization.Serialize(object, bool)
    TypeUtility.ToShortString(object, int)
    TypeUtility.ToShortString(object, int)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.IsUnityNull(object)
    UnityObjectUtility.ToSafeString(object)
    UnityObjectUtility.ToSafeString(object)
    XAnalyserProvider.Analyser(object, GraphReference)
    XAnalyserProvider.Analyser(object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(object, IGraphContext)
    XAnalyserProvider.Analysis(object, GraphReference)
    XAnalyserProvider.Analysis(object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(object, IGraphContext)
    XDescriptorProvider.Describe(object)
    XDescriptorProvider.Description(object)
    XDescriptorProvider.Description<TDescription>(object)
    XDescriptorProvider.Descriptor(object)
    XDescriptorProvider.Descriptor<TDescriptor>(object)
    XDescriptorProvider.HasDescriptor(object)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.CloneViaFakeSerialization<T>(T)
    Cloning.Clone<T>(T, ICloner, bool)
    Cloning.Clone<T>(T, ICloner, bool)
    LinqUtility.Yield<T>(T)
    LinqUtility.Yield<T>(T)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    Serialization.CloneViaSerialization<T>(T, bool)
    GraphsExceptionUtility.GetException(IGraphElementWithDebugData, GraphPointer)
    GraphsExceptionUtility.HandleException(IGraphElementWithDebugData, GraphPointer, Exception)
    GraphsExceptionUtility.SetException(IGraphElementWithDebugData, GraphPointer, Exception)
    XGraphEventListener.StartListening(IGraphEventListener, GraphReference)
    XGraphEventListener.StopListening(IGraphEventListener, GraphReference)
    XUnit.CompatibleValueInput(IUnit, Type)
    XUnit.CompatibleValueOutput(IUnit, Type)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)