- Home /
Bolt - InvalidOperationException - Variable not found
Hi, I'm using Bolt (1.4.15) I added variable to the gameobject "MoveSpeed":
Then I passed this variable to input "force" in the flow graph:
And then start receiving following exception in the Editor:
InvalidOperationException: Variable not found: 'MoveSpeed'. Bolt.VariableDeclarations.Get (System.String variable) (at Bolt.Core.Runtime/Variables/VariableDeclarations.cs:57) Bolt.GetVariable.Get (Bolt.Flow flow) (at Bolt.Flow.Runtime/Framework/Variables/GetVariable.cs:138) Bolt.Unit+<>c_DisplayClass86_0`1[T].b0 (Bolt.Flow recursion) (at Bolt.Flow.Runtime/Unit.cs:356) Bolt.Flow.GetValueDelegate (Bolt.ValueOutput output) (at Bolt.Flow.Runtime/Flow.cs:646) Bolt.Flow.GetValue (Bolt.ValueOutput output) (at Bolt.Flow.Runtime/Flow.cs:590) Bolt.Flow.GetValue (Bolt.ValueInput input) (at Bolt.Flow.Runtime/Flow.cs:536) Bolt.Flow.GetValue (Bolt.ValueInput input, System.Type type) (at Bolt.Flow.Runtime/Flow.cs:599) Bolt.Flow.GetConvertedValue (Bolt.ValueInput input) (at Bolt.Flow.Runtime/Flow.cs:609) Bolt.InvokeMember.Invoke (System.Object target, Bolt.Flow flow) (at Bolt.Flow.Runtime/Framework/Codebase/InvokeMember.cs:175) Bolt.InvokeMember.Enter (Bolt.Flow flow) (at Bolt.Flow.Runtime/Framework/Codebase/InvokeMember.cs:262) Bolt.Flow.InvokeDelegate (Bolt.ControlInput input) (at Bolt.Flow.Runtime/Flow.cs:456) Bolt.Flow.Invoke (Bolt.ControlOutput output) (at Bolt.Flow.Runtime/Flow.cs:350) Bolt.Flow.Invoke (Bolt.ControlOutput output) (at Bolt.Flow.Runtime/Flow.cs:354) Bolt.Flow.Run (Bolt.ControlOutput port) (at Bolt.Flow.Runtime/Flow.cs:244) Bolt.EventUnit`1[TArgs].Run (Bolt.Flow flow) (at Bolt.Flow.Runtime/Framework/Events/EventUnit.cs:185) Bolt.EventUnit`1[TArgs].Trigger (Ludiq.GraphReference reference, TArgs args) (at Bolt.Flow.Runtime/Framework/Events/EventUnit.cs:156) Bolt.EventUnit`1+<>cDisplayClass14_0[TArgs].b_0 (TArgs args) (at Bolt.Flow.Runtime/Framework/Events/EventUnit.cs:68) Bolt.EventBus.Trigger[TArgs] (Bolt.EventHook hook, TArgs args) (at Bolt.Core.Runtime/Events/EventBus.cs:72) Bolt.EventMachine`2[TGraph,TMacro].TriggerRegisteredEvent[TArgs] (Bolt.EventHook hook, TArgs args) (at Bolt.Core.Runtime/Events/EventMachine.cs:36) Bolt.EventMachine`2[TGraph,TMacro].TriggerEvent (System.String name) (at Bolt.Core.Runtime/Events/EventMachine.cs:14) Bolt.EventMachine`2[TGraph,TMacro].Update () (at Bolt.Core.Runtime/Events/EventMachine.cs:75)
Please, help to fix it!
Thanks, Yulian