GetField from arbitrary value, not just scripts

Forums 💬 NodeCanvas 🤩 Custom Nodes and Tasks GetField from arbitrary value, not just scripts

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

      Hello

      I’ve created an action to read a field from a variable of arbitrary type, not just scripts (MonoBehaviour’s) into a blackboard variable.
      One for reading a property is very similar.
      Handles the case of transforming an array to a BB list parameter.

      #12924
      Gavalakis
      Keymaster

        That’s great!
        Thanks a lot for sharing! 🙂

        #12923
        bcristian
        Participant

          oops, a bug slipped through…
          line 81 should be:

          saveAs.value = field.GetValue(from.value);

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