Use this? or that? for what?

Forums 💬 NodeCanvas 🗨️ General Discussion Use this? or that? for what?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14827
    nodebrain
    Participant

      Hi,

      Trying to decide between node editor extensions.
      So I’ve decided to describe a goal i have, and see which extension gives the best method for me to achieve that goal.

      I have the same component on multiple game objects
      there is a public variable on these components that I would like to point to one variable
      there is an editor for this component that doesn’t display the public variable
      I want to edit a single variable that all the game objects point to

      thanks for any help on this goal 🙂

      #14830
      Gavalakis
      Keymaster

        Hello,

        If you want to sync variables with a property of a monobehaviour, you can use the new script called BlackboardPropertyBinder.
        So in your case, you can this script on all of the gameobject that you want to sync their property with a blackboard variable, assign the target blackboard on the ‘Blackboard’ field of that script and select the property and the variable that you want to syn.
        Here is the documentation for this Property Binder script:
        http://nodecanvas.com/documentation/using-blackboard-binders-property-mecanim/

        Cheers!

        #14829
        nodebrain
        Participant

          Hey Thanks,
          greyed out on custom scripts, anyway round?
          Cheers,
          nick

          #14828
          Gavalakis
          Keymaster

            Hello,

            The script is working with Properties, not fields. Your scripts will show greyed out in the menu, if there are no public properties of the same type as the variable you want to bind/sync.

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