docs.unity3d.com
    Show / Hide Table of Contents

    Class GameObjectEventUnit<TArgs>

    Inheritance
    Object
    GraphElement<FlowGraph>
    Unit
    EventUnit<TArgs>
    GameObjectEventUnit<TArgs>
    CustomEvent
    GenericGuiEventUnit
    OnAnimatorIK
    OnAnimatorMove
    OnBecameInvisible
    OnBecameVisible
    OnButtonClick
    OnDropdownValueChanged
    OnInputFieldEndEdit
    OnInputFieldValueChanged
    OnJointBreak
    OnMouseDown
    OnMouseDrag
    OnMouseEnter
    OnMouseExit
    OnMouseOver
    OnMouseUp
    OnMouseUpAsButton
    OnMove
    OnScrollbarValueChanged
    OnScrollRectValueChanged
    OnSliderValueChanged
    OnToggleValueChanged
    OnTransformChildrenChanged
    OnTransformParentChanged
    PointerEventUnit
    Inherited Members
    EventUnit<TArgs>.coroutine
    EventUnit<TArgs>.trigger
    EventUnit<TArgs>.StopListening(GraphStack)
    EventUnit<TArgs>.Uninstantiate(GraphReference)
    EventUnit<TArgs>.IsListening(GraphPointer)
    EventUnit<TArgs>.Trigger(GraphReference, TArgs)
    EventUnit<TArgs>.ShouldTrigger(Flow, TArgs)
    EventUnit<TArgs>.AssignArguments(Flow, TArgs)
    EventUnit<TArgs>.CompareNames(Flow, ValueInput, String)
    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>.IGraphElement.graph
    GraphElement<FlowGraph>.IGraphItem.graph
    GraphElement<FlowGraph>.deserializationDependencies
    GraphElement<FlowGraph>.GetAotStubs(HashSet<Object>)
    GraphElement<FlowGraph>.Prewarm()
    GraphElement<FlowGraph>.CopyFrom(GraphElement<FlowGraph>)
    GraphElement<FlowGraph>.ToString()
    Namespace: Unity.VisualScripting
    Syntax
    public abstract class GameObjectEventUnit<TArgs> : EventUnit<TArgs>, IGraphElementWithData, IGraphEventHandler<TArgs>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventListener
    Type Parameters
    Name Description
    TArgs

    Properties

    hookName

    Declaration
    protected virtual string hookName { get; }
    Property Value
    Type Description
    String

    MessageListenerType

    Declaration
    public abstract Type MessageListenerType { get; }
    Property Value
    Type Description
    Type
    Implements
    IGameObjectEventUnit.MessageListenerType

    register

    Declaration
    protected sealed override bool register { get; }
    Property Value
    Type Description
    Boolean
    Overrides
    Unity.VisualScripting.EventUnit<TArgs>.register

    target

    The game object that listens for the event.

    Declaration
    [DoNotSerialize]
    [NullMeansSelf]
    [PortLabel("Target")]
    public ValueInput target { get; }
    Property Value
    Type Description
    ValueInput

    Methods

    CreateData()

    Declaration
    public override IGraphElementData CreateData()
    Returns
    Type Description
    IGraphElementData
    Overrides
    Unity.VisualScripting.EventUnit<TArgs>.CreateData()

    Definition()

    Declaration
    protected override void Definition()
    Overrides
    Unity.VisualScripting.EventUnit<TArgs>.Definition()

    GetHook(GraphReference)

    Declaration
    public override EventHook GetHook(GraphReference reference)
    Parameters
    Type Name Description
    GraphReference reference
    Returns
    Type Description
    EventHook
    Overrides
    Unity.VisualScripting.EventUnit<TArgs>.GetHook(Unity.VisualScripting.GraphReference)

    StartListening(GraphStack)

    Declaration
    public override void StartListening(GraphStack stack)
    Parameters
    Type Name Description
    GraphStack stack
    Overrides
    Unity.VisualScripting.EventUnit<TArgs>.StartListening(Unity.VisualScripting.GraphStack)
    Implements
    IGraphEventListener.StartListening(GraphStack)

    StartListening(GraphStack, Boolean)

    Declaration
    protected void StartListening(GraphStack stack, bool updateTarget)
    Parameters
    Type Name Description
    GraphStack stack
    Boolean updateTarget

    Extension Methods

    XUnit.CompatibleValueInput(IUnit, Type)
    XUnit.CompatibleValueOutput(IUnit, Type)
    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    XUnitOptionProvider.Option(IUnit)
    XUnitOptionProvider.Option<TOption>(IUnit)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    GraphsExceptionUtility.GetException(IGraphElementWithDebugData, GraphPointer)
    GraphsExceptionUtility.SetException(IGraphElementWithDebugData, GraphPointer, Exception)
    GraphsExceptionUtility.HandleException(IGraphElementWithDebugData, GraphPointer, Exception)
    XGraphEventListener.StartListening(IGraphEventListener, GraphReference)
    XGraphEventListener.StopListening(IGraphEventListener, GraphReference)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    In This Article
    • Properties
      • hookName
      • MessageListenerType
      • register
      • target
    • Methods
      • CreateData()
      • Definition()
      • GetHook(GraphReference)
      • StartListening(GraphStack)
      • StartListening(GraphStack, Boolean)
    • Extension Methods
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023