Class CustomEvent
A special named event with any amount of parameters called manually with the 'Trigger Custom Event' unit.
Inheritance
CustomEvent
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Events", 0)]
[Obsolete("Use the new class events system instead.")]
public sealed class CustomEvent : GameObjectEventUnit<CustomEventArgs>, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<CustomEventArgs>
Properties
argumentCount
Declaration
[DoNotSerialize]
[Inspectable]
[UnitSettingDisplay("Arguments")]
public int argumentCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
argumentPorts
Declaration
[DoNotSerialize]
public List<ValueOutput> argumentPorts { get; }
Property Value
Type | Description |
---|---|
List<ValueOutput> |
eventProxyType
Declaration
public override Type eventProxyType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Ludiq.Bolt.GameObjectEventUnit<Ludiq.Bolt.CustomEventArgs>.eventProxyType
hookID
Declaration
public override EventHookID hookID { get; }
Property Value
Type | Description |
---|---|
EventHookID |
Overrides
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.CustomEventArgs>.hookID
name
The name of the event.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput name { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
AssignArguments(Flow, CustomEventArgs)
Declaration
protected override void AssignArguments(Flow flow, CustomEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
CustomEventArgs | args |
Overrides
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.CustomEventArgs>.AssignArguments(Ludiq.Bolt.Flow, Ludiq.Bolt.CustomEventArgs)
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.GameObjectEventUnit<Ludiq.Bolt.CustomEventArgs>.Definition()
Invoke(GameObject, String, Object[])
Declaration
public static void Invoke(GameObject target, string name, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
GameObject | target | |
String | name | |
Object[] | args |
ShouldInvoke(Flow, CustomEventArgs)
Declaration
protected override bool ShouldInvoke(Flow flow, CustomEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
CustomEventArgs | args |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.EventHandlerUnit<Ludiq.Bolt.CustomEventArgs>.ShouldInvoke(Ludiq.Bolt.Flow, Ludiq.Bolt.CustomEventArgs)