Skip to content

Managing state in a recursively rendered UI #5525

Answered by dbalsom
dangrazh asked this question in Q&A
Discussion options

You must be logged in to vote

It's also possible, if you dislike this pattern, to pass a mutable reference to a state struct to render_ui_tree_recursive which can be modified in-place and then examined after rendering is complete.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dbalsom
Comment options

Answer selected by dangrazh
@dangrazh
Comment options

@dbalsom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants