0
Not a Bug

Custom GlobalEvent InvalidImplementationException

Eric Welwood 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Unity 2018.3.0b6

Exception occurs every frame while in editor after implementing custom Global Event.

InvalidImplementationException: Exception of type 'Ludiq.InvalidImplementationException' was thrown.

Bolt.GlobalEventUnit`1[Bolt.EmptyEventArgs].get_hookName () (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Events/GlobalEventUnit.cs:9)

Bolt.GlobalEventUnit`1[Bolt.EmptyEventArgs].GetHook (Ludiq.GraphReference reference) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Events/GlobalEventUnit.cs:13)

Bolt.XEventGraph.TriggerEventHandler[EmptyEventArgs] (Ludiq.GraphStack stack, System.Func`2 predicate, EmptyEventArgs args, System.Func`2 recurse, Boolean force) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/IEventGraph.cs:44)

Bolt.XEventGraph.TriggerEventHandler[EmptyEventArgs] (Ludiq.GraphStack stack, System.Func`2 predicate, EmptyEventArgs args, System.Func`2 recurse, Boolean force) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/IEventGraph.cs:57)

Bolt.EventMachine`2[Bolt.StateGraph,Bolt.StateMacro].TriggerUnregisteredEvent[EmptyEventArgs] (EventHook hook, EmptyEventArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:49)

Bolt.EventMachine`2[TGraph,TMacro].TriggerUnregisteredEvent (System.String name) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:36)

Bolt.EventMachine`2[TGraph,TMacro].OnDrawGizmos () (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:138)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)



BoltNamedEvent

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Not a Bug

Without looking at your code too much, I'm guessing you forgot to specify a hook name override for the Bolt event bus. Add something like:

public override string hookName => "BoltNamedEvent";