本文整理汇总了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);
}