What is the name of the information in the lower left, once I use guiNode.detachAllChildren(); what can I use to reattach this gui spatial?
http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/core/com/jme3/app/SimpleApplication.java
See line 79.
Never be afraid to use the source.
app.setDisplayFps() ?
SimpleApplication.java
[java]
public void setDisplayStatView(boolean show) {
statsView.setEnabled(show);
statsView.setCullHint(show ? CullHint.Never : CullHint.Always);
}
[/java]
Thanks!
@pspeed said:
Never be afraid to use the source.
I will use the source before I post next time.
@normen said:
app.setDisplayFps() ?
No, because if you've detachedAll on the guiNode no amount of setDisplayXXX will put it back.
@pspeed said:
No, because if you've detachedAll on the guiNode no amount of setDisplayXXX will put it back.
Correct, I thought about using it generally instead of detachAll() but yeah, you'll have to not use detachAll() or just add your own rootNode to the existing gui rootNode as a child.