Gui.set(node, property, value) and gui.get(node, property)

Would be great to have gui.set(node, property, value) and gui.get(node, property) methods like go methods https://www.defold.com/ref/go/#go.set:url-property-value
https://www.defold.com/ref/go/#go.get:url-property

I have few components that can be one module with different property if I would have this methods. But now I have to make copy-past of code replacing one line or unintuitive dynamic gui calls.

7 Likes