-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable RmlUI document if scene is not visible #517
base: master
Are you sure you want to change the base?
Conversation
IMO it would make more sense for component to follow |
Will disabling updates stop UI from rendering? I don't think so. Calling SetEnabled is not convenient. The problem is that switching between application states should switch visible rmlui elements. For classic UI I solve this by replacing a UI Root element in UI subsystem. There is no such thing in RmlUI subsystem. There should be a better way of doing this but coming up with it may take a long time. |
It does not, but it could.
This is an option for other usecases. Maybe we want invisible scene still doing UI, maybe we want visible scene not doing UI. Combination of |
Ok, I'll update the PR tonight. |
But should it? |
That makes sense 🤔 |
@gleblebedev did you check that render to texture works as expected (e.g. in samples)? |
No :-( I forgot about it |
Is it also done with component? Why component? |
Our workflow is component-centric, it was a natural fit for ui in the editor. But maybe component is implemented wrong. Maybe ui should be rendered as an overlay on the scene. In that case not rendering scene would not render ui automagically. Although input handling would start to depend on viewport rect. It would also play well with editor... |
No description provided.