General Help Questions

Forums 💬 NodeCanvas ⚙️ Support General Help Questions

  • This topic has 0 replies, 2 voices, and was last updated 2 years ago by Gavalakis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15297
    wedgiebee
    Participant

      Hi there, I recently implemented a boss fight using NodeCanvas which was a great way to get used to it! Encountered a few questions as I was using it:

      1) When using an FSM, while the game is playing is there a way to shortcut to a certain state in the inspector?
      2) Is it possible to copy/paste individual actions within a node, or from one node to another? (Rather than copy/pasting all actions from one node to another)
      3) How do I call ExecuteFunction or CheckUnityEvent on a ScriptableObject?
      4) Recently got an answer to this on the discord but wanted to double check – to get the value of fields in a class (ex. RaycastHit or a custom class), you have to write your own custom action to save the values from those fields correct?

      #15298
      Gavalakis
      Keymaster

        Hello and happy new year! Sorry for the late reply.

        1) In the right-click menu of a state you can hit “Enter State”. This will force enter the state for debugging purposes.
        2) Yes, you can copy/paste actions. Right-click an action title and select “Copy”, then in another node click the “Assign Action” as usual, and you will see “Paste” at the end of the actions list when you are to add a new action.
        3) Right now ExecuteFunction (and similar actions) only work with Components. This is something that is planned to change so it is possible to work with ScriptableObjects as well though, but it’s not possible right now.
        4) If you mean getting the value of a public field from a component attached on a gameobject, you can use the “Get Field” action task (under Reflected category). This will read and save the field value in a blackboard variable.

        Let me know.
        Thank you.

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