The public field variable can not be reflected?

Forums 💬 FlowCanvas ⚙️ Support The public field variable can not be reflected?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22452
    nicoyiqi
    Participant

      [attachment file=”11.jpg”]
      when i drag a port connection to add a new node .I can’t find the public field variable. how to use public field of custom script?

      #22456
      Gavalakis
      Keymaster

        Hello,

        Fields are not supported by FlowCanvas for performance (because fields can’t be turned into delegates). Only properties are supported.
        You can always of course do something like this if you want to also use the Unity inspector 🙂

        Let me know if that works for you.
        Thanks!

        #22455
        nicoyiqi
        Participant

          thanks for your reply.

          I also find another reflection issue:
          The public static function of custom scirpt can’t be reflected by dragging a port connection to add a new node. Although the type has been added to prefferd types, however, when i press space button,and search it, it works.

          #22454
          Gavalakis
          Keymaster

            Hey,

            When dragging a node port, the menu shown only contains nodes which have ports that can be connected to that dragged port type.
            For example here, the dragged port of type ‘Test’, can’t be connected to any ports of the generated node of the static method ‘Test.LogSomething()’. Even though LogSomething is a member of Test, there are no input ports of type ‘Test’ here since the method is static.

            Let me know if that makes sense 🙂
            Thanks.

            #22453
            nicoyiqi
            Participant

              thanks.Gavalakis

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