本文整理汇总了Java中org.andengine.entity.scene.CameraScene类的典型用法代码示例。如果您正苦于以下问题:Java CameraScene类的具体用法?Java CameraScene怎么用?Java CameraScene使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CameraScene类属于org.andengine.entity.scene包,在下文中一共展示了CameraScene类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAttached
import org.andengine.entity.scene.CameraScene; //导入依赖的package包/类
/**
* Because clipping uses different coordinate transformation depending on whether the Scrollable
* is in a normal Scene or a HUD, we have to check where this Scrollable is being attached and
* set the isInHUD member appropriately.
*/
@Override
public void onAttached() {
IEntity node = this;
while (node.hasParent()) {
node = node.getParent();
if (node instanceof HUD || node instanceof CameraScene) {
this.isInHUD = true;
return;
}
}
}