Example usage for com.badlogic.gdx.scenes.scene2d Group clear

List of usage examples for com.badlogic.gdx.scenes.scene2d Group clear

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Group clear.

Prototype

public void clear() 

Source Link

Document

Removes all children, actions, and listeners from this group.

Usage

From source file:com.bagon.matchteam.mtx.utils.UtilsDisposer.java

License:Apache License

/**
 * Dispose group from a group//from   w  w w  .j  av a 2s. c  o  m
 * */
public static void disposeGroup(Group group, Group groupToBeDisposed) {
    if (group != null && groupToBeDisposed != null) {
        try {
            groupToBeDisposed.clear();
            if (group.removeActor(groupToBeDisposed))
                log("Actor disposed", groupToBeDisposed);
        } catch (Exception e) {
            log("Actor dispose FAIL!", groupToBeDisposed);
        }
    }
}