Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
シーンの子を取得する必要があります。私は andengine を使用していて、どうにかしてゲームの状態を保存しようとしていますが、オブジェクトを配列に入れたくありません。レベルの作成中に、必要なときにそれらのアイテムを取得したいと考えています。それで - 質問は - シーンの子供を取得する方法はありますか? もしそうなら、それを行う方法は?
を使用yourScene.getChildCount()しyourScene.getChildByIndex()て、物事を反復することができます
yourScene.getChildCount()
yourScene.getChildByIndex()