com.badlogic.gdx.scenes.scene2d.Actor.clearListeners()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.Actor.clearListeners()方法的一些代码示例,展示了Actor.clearListeners()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Actor.clearListeners()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.Actor
类名称:Actor
方法名:clearListeners

Actor.clearListeners介绍

[英]Removes all listeners on this actor.
[中]删除此角色上的所有侦听器。

代码示例

代码示例来源:origin: libgdx/libgdx

/** Removes all actions and listeners on this actor. */
public void clear () {
  clearActions();
  clearListeners();
}

代码示例来源:origin: libgdx/libgdx

/** Removes all actions and listeners on this actor. */
public void clear () {
  clearActions();
  clearListeners();
}

代码示例来源:origin: dingjibang/GDX-RPG

public TypedGdxQuery<T> cleanListeners(){
  t.clearListeners();
  return this;
}

代码示例来源:origin: dingjibang/GDX-RPG

public GdxQuery cleanListeners(){
  for(Actor actor:list())
    actor.clearListeners();
  return this;
}

代码示例来源:origin: com.badlogicgames.gdx/gdx

/** Removes all actions and listeners on this actor. */
public void clear () {
  clearActions();
  clearListeners();
}

代码示例来源:origin: Var3D/var3dframe

actor.clearListeners();
if (data.allListeners != null) {
  for (EventListener listener : data.allListeners) {
actor.clearListeners();
actor.addListener(new InputListener() {
  private float starX, starY;

相关文章