FlowCanvas Forums › Support › Bug: Cannot set nullable class back to null after using "(null) Create" button.
If I have a custom node that has a nullable value input, like this:
1 2 3 4 5 6 7 8 9 10 11 12 |
public class TestNode : CallableActionNode<TestClass> { public override void Invoke(TestClass a) { } } public class TestClass { public string value; } |
and I select the node and click “(null) Create” inside the node inspector, it will make an instance of that class that I can then populate inline, which is great!
However, now I have two issues:
Hello again,
I just made the changes so that classes display “NULL” tip when they are null and also display their .ToString() if it is overriden (and it returns anything other than the type name which is the default).
I will need to also take a look at adding the ability to turn the parameter back to null somewhere in the GUI (probably right click on the parameter name? )
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
I just made the changes so that classes display “NULL” tip when they are null and also display their .ToString() if it is overriden (and it returns anything other than the type name which is the default).
Hurray!
I will need to also take a look at adding the ability to turn the parameter back to null somewhere in the GUI (probably right click on the parameter name? )
That’s good for me. I don’t know how discoverable that is for everyone, though, but I don’t have any better suggestions either.