The public field variable can not be reflected?

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

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

    11
    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?

    Attachments:
    You must be logged in to view attached files.
    #1026
    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!

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

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

    Attachments:
    You must be logged in to view attached files.
    #1035
    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.

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

    #1038
    nicoyiqi
    Participant

    thanks.Gavalakis

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