Hi, I just bought and imported NodeCanvas, so latest version. I am not clear where I can check which version it is. This is a similar issue to what is reported with nullable float (http://nodecanvas.com/forums/topic/issue-with-nullable-float), but has to do with Action nodes calling script functions that take default parameters in C#. I have a function RequestPath(Vector2 target, float priority = 0). If I add an action node to call that the editor barfs in the reflection code. Call stack below. If I remove the default 0 for priority everything works fine.
Please specify that the default parameter is a float, by adding literal f at the end and it will work 🙂 RequestPath(Vector2 target, float priority = 0f)
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.