i try to use WidgetSpriteNode class.
i want to draw a node in WidgetSpriteNode.
but the node appear at WidgetSpriteNode with worldscene.
i wrote this script.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// my script
m_lbSpriteNode = new WidgetSpriteNode(gui, 430, 600);
Node node = node_load("mesh.node");
m_lbSpriteNode.setProjection(ortho(-10, 10, 50, -1, 0.1f, 100.0f));
m_lbSpriteNode.setModelview(lookAt(vec3(0,-1,0), vec3(0,1,0), vec3(0,0,1)));
m_lbSpriteNode.setNode(node);
// Transparent background viewport
m_lbSpriteNode.setBlendFunc(GUI_BLEND_SRC_ALPHA,GUI_BLEND_ONE_MINUS_SRC_ALPHA);
engine.render.setAmbientColor(vec4(1, 1, 1, 1));
// remove
engine.editor.removeNode(node);
or
node_remove(node);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
but i was failed remove from worldscene.
can i remove the node from worldscene for only use in WidgetSpriteNode ?