Page 1 of 1

Update Draw from views

Posted: 07 Jun 2021, 17:40
by MattNiznak
I've been trying to use Views to swap between drawing All the UI and A subsection of the UI. Think View->GetContent() is RootElement -> Subelement, and View2 is just Subelement. I don't know if this is a legit way to use them, because when my logic swaps between View->GetRenderer()->Render() and View2->GetRenderer()->Render(), nothing gets drawn.

Re: Update Draw from views

Posted: 08 Jun 2021, 11:20
by jsantos
Views are heavy objects. We don't recommend having two views for the same render. If you have a single view with a named root for example, you can dynamically add and remove controls.

If you give us more context about your scenario we can help you more.