Topic Author
Posts: 8
Joined: 14 Oct 2019, 10:17

Update Draw from views

07 Jun 2021, 17:40

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.

User avatar
Site Admin
Posts: 3117
Joined: 20 Jan 2012, 17:18

Re: Update Draw from views

08 Jun 2021, 11:20

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.

Who is online

Users browsing this forum: Bing [Bot] and 1 guest