Agent Type

Forums 💬 NodeCanvas ⚙️ Support Agent Type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19793
    atmuc
    Participant

      i get following error;

      /b> Failed to change Agent to type ‘UnityEngine.Collider’, for Task ‘Check Mouse Click’ or new Agent is NULL. Does the Agent has that Component?
      UnityEngine.Debug:LogError(Object, Object)
      NodeCanvas.Task:Initialize(Component) (at Assets/NodeCanvas/Scripts/Core/Tasks/Task.cs:264)
      NodeCanvas.Task:Set(Component, Blackboard) (at Assets/NodeCanvas/Scripts/Core/Tasks/Task.cs:250)
      NodeCanvas.ConditionTask:CheckCondition(Component, Blackboard) (at Assets/NodeCanvas/Scripts/Core/Tasks/Conditions/ConditionTask.cs:33)
      NodeCanvas.ConditionalConnection:CheckCondition(Component, Blackboard) (at Assets/NodeCanvas/Scripts/Core/Graph/ConditionalConnection.cs:48)
      NodeCanvas.FSM.FSMAnyStateLink:OnUpdate() (at Assets/NodeCanvas/Scripts/Systems/FSM/FSMAnyStateLink.cs:43)
      NodeCanvas.FSM.FSMContainer:OnGraphUpdate() (at Assets/NodeCanvas/Scripts/Systems/FSM/FSMContainer.cs:46)
      NodeCanvas.MonoManager:Update() (at Assets/NodeCanvas/Scripts/Core/Other/MonoManager.cs:59)

      i think this action does not support 2d collider.

      #19794
      Gavalakis
      Keymaster

        Hello,

        Indeed. I’ve attached a zip with 2 conditions. CheckMouse2D and CheckMouseClick2D.
        They are practicaly the same with the existing ones but they work for 2D colliders.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.