GetField from arbitrary value, not just scripts

NodeCanvas Forums Custom Nodes & Tasks GetField from arbitrary value, not just scripts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11519
    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.

    #11529
    Gavalakis
    Keymaster

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

    Join us on Discord: https://discord.gg/97q2Rjh

    #11530
    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.