Reply To: CheckInt bug (FSM)

NodeCanvas Forums General Discussion CheckInt bug (FSM) Reply To: CheckInt bug (FSM)

#14400
Gavalakis
Keymaster

Hey,

 

I have replied to you regarding this (and your other question) in Discord a few moments ago.

The CheckInt and similarily the other “Check-X” conditions like CheckBool, CheckFloat etc, only check a blackboard variable of that exact type existing on the blackboard.

The reflection task found under the “Script Control” category, like CheckField and CheckProperty are more suited to check for a (code implemented) field or property respectively. Having said that though, “dot” (.) syntax is not really supported at least right now, but rather only direct field/properties declared on the target component/gameobject can be used.

I could probably add support for nested/deep fields and properties, although that will also slow down (performance wise) the initialization of the tasks and bound variables due to more reflection code required, and that is also the reason I did not add that feature initially.

Please let me know if you want to continue the discussion here or in discord, although the forums seems like a better place for this 🙂

 

Thank you!

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