FlowCanvas Forums › Support › two-way binding properties node. › Reply To: two-way binding properties node.
Hello there,
Using the [ContextMenu] attribute is totaly valid within nodes like you do, but to change the “current value” please dont use the “SetDefaultAndSerializedValue”. Simply set the “.serializedValue” property. Setting this property will actually only set the serialized value that you see in the inspector and leave the defaultValue unchanged.
“SetDefaultAndSerializedValue” is just a shortcut to setting both “.defaultValue” and “.serializedValue” properties :).
Please let me know if that works for you.
Thank you.