+1
Under review

Behaviour Bug

Andi Rutz 2 months ago in Behavior updated by Marti (Lead Developer) 2 months ago 1

For some reason, the invoker passes as null and won't detect the character.

Error coming. 

NullReferenceException: Object reference not set to an instance of an object
GameCreator.Melee.ActionMeleeAttack.InstantExecute (UnityEngine.GameObject target, GameCreator.Core.IAction[] actions, System.Int32 index) (at Assets/Plugins/GameCreator/Melee/Mono/Actions/ActionMeleeAttack.cs:21)
GameCreator.Core.IAction.InstantExecute (UnityEngine.GameObject target, GameCreator.Core.IAction[] actions, System.Int32 index, System.Object[] parameters) (at Assets/Plugins/GameCreator/Core/ScriptableObjects/Interaction/IAction.cs:21)
GameCreator.Core.IActionsList+<ExecuteCoroutine>d__9.MoveNext () (at Assets/Plugins/GameCreator/Core/ScriptableObjects/Interaction/IActionsList.cs:107)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <d815b7efac424eeb8e053965cccb1f98>:0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
GameCreator.Core.IActionsList:Execute(GameObject, Action, Object[]) (at Assets/Plugins/GameCreator/Core/ScriptableObjects/Interaction/IActionsList.cs:91)
GameCreator.Core.IActionsListEditor:OnInspectorGUI() (at Assets/Plugins/GameCreator/Core/Editor/Interaction/IActionsListEditor.cs:204)
GameCreator.Behavior.NodeEditor:PaintInspectorActions() (at Assets/Plugins/GameCreator/Behavior/Editor/BehaviorTree/Nodes/NodeEditor.cs:251)
GameCreator.Behavior.NodeTaskEditor:OnInspectorGUI() (at Assets/Plugins/GameCreator/Behavior/Editor/BehaviorTree/Nodes/NodeTaskEditor.cs:37)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Unity version:
2019.3.6f1
Game Creator version:
1.1.6
Under review

Hi Andi;

Can you send also a screenshot of the Behavior Graph you're using? This will help us reproduce the problem. Thanks!