For view component, is it possible to have a disappear or hide method? #1043
chengenzhao
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Hia, if |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi:
I tried to remove temporary view component in this way but it cause concurrent modification exception
explo.setOnCycleFinished(()->entity.getViewComponent().removeChild(explo));explo is a temporary view component
so is it possible to have a switch that I could tune off rendering of this view component ?
e.g. explo.disappear() or hide();
and explo.appear() or .show();
and of course the view component is rendered by default
For now we set opacity to 0 & 1 for temporary usage
Not sure this is a efficient way, I guess the code still will try to render the component...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions