本文整理匯總了Java中com.jme3.scene.Node.detachAllChildren方法的典型用法代碼示例。如果您正苦於以下問題:Java Node.detachAllChildren方法的具體用法?Java Node.detachAllChildren怎麽用?Java Node.detachAllChildren使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.jme3.scene.Node
的用法示例。
在下文中一共展示了Node.detachAllChildren方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: changeModeImpl
import com.jme3.scene.Node; //導入方法依賴的package包/類
/**
* Change the {@link ModelType} in the {@link EditorThread}.
*
* @param modelType the new model type.
*/
@JMEThread
protected void changeModeImpl(@NotNull final ModelType modelType) {
final Node modelNode = getModelNode();
modelNode.detachAllChildren();
switch (modelType) {
case BOX: {
modelNode.attachChild(getTestBox());
break;
}
case QUAD: {
modelNode.attachChild(getTestQuad());
break;
}
case SPHERE: {
modelNode.attachChild(getTestSphere());
break;
}
}
setCurrentModelType(modelType);
}
示例2: cleanup
import com.jme3.scene.Node; //導入方法依賴的package包/類
@Override
@JMEThread
public void cleanup() {
super.cleanup();
final Node modelNode = getModelNode();
modelNode.detachAllChildren();
final Node stateNode = getStateNode();
stateNode.detachChild(modelNode);
}
示例3: notifyProbeComplete
import com.jme3.scene.Node; //導入方法依賴的package包/類
/**
* Activate the node with models.
*/
@JMEThread
private void notifyProbeComplete() {
final Node stateNode = getStateNode();
stateNode.attachChild(getModelNode());
stateNode.attachChild(getToolNode());
final Node customSkyNode = getCustomSkyNode();
customSkyNode.detachAllChildren();
final TonegodTranslucentBucketFilter translucentBucketFilter = EDITOR.getTranslucentBucketFilter();
translucentBucketFilter.refresh();
}
示例4: updateObject
import com.jme3.scene.Node; //導入方法依賴的package包/類
@Override
protected void updateObject(Node object, Entity e) {
object.detachAllChildren();
refreshMesh(object, e);
}