Class CustomEvent
A special named event with any amount of parameters called manually with the 'Trigger Custom Event' unit.
Syntax
[UnitCategory("Events")]
[UnitOrder(0)]
public sealed class CustomEvent : GameObjectEventUnit<CustomEventArgs>, IGraphElementWithData, IGraphEventHandler<CustomEventArgs>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventListener
Properties
argumentCount
Declaration
[DoNotSerialize]
[Inspectable]
[UnitHeaderInspectable("Arguments")]
public int argumentCount { get; set; }
Property Value
argumentPorts
Declaration
[DoNotSerialize]
public List<ValueOutput> argumentPorts { get; }
Property Value
hookName
Declaration
protected override string hookName { get; }
Property Value
Overrides
Unity.VisualScripting.GameObjectEventUnit<Unity.VisualScripting.CustomEventArgs>.hookName
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Overrides
Unity.VisualScripting.GameObjectEventUnit<Unity.VisualScripting.CustomEventArgs>.MessageListenerType
name
Declaration
[DoNotSerialize]
public ValueInput name { get; }
Property Value
Methods
AssignArguments(Flow, CustomEventArgs)
Declaration
protected override void AssignArguments(Flow flow, CustomEventArgs args)
Parameters
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.CustomEventArgs>.AssignArguments(Unity.VisualScripting.Flow, Unity.VisualScripting.CustomEventArgs)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.GameObjectEventUnit<Unity.VisualScripting.CustomEventArgs>.Definition()
ShouldTrigger(Flow, CustomEventArgs)
Declaration
protected override bool ShouldTrigger(Flow flow, CustomEventArgs args)
Parameters
Returns
Overrides
Unity.VisualScripting.EventUnit<Unity.VisualScripting.CustomEventArgs>.ShouldTrigger(Unity.VisualScripting.Flow, Unity.VisualScripting.CustomEventArgs)
Trigger(GameObject, String, Object[])
Declaration
public static void Trigger(GameObject target, string name, params object[] args)
Parameters
Extension Methods