子エンティティにAlphaを設定するのに問題があります。Rectangleエンティティを作成し、次のようにTextエンティティを長方形にアタッチします。
m_background = new Rectangle(0.0f, 0.0f, m_activity.getCamera().getWidth(), m_activity.getCamera().getHeight(), m_activity.getVertexBufferObjectManager());
m_background.setColor(0.0f, 0.0f, 0.0f);
FontFactory.setAssetBasePath("font/");
final ITexture fontTexture = new BitmapTextureAtlas(m_activity.getTextureManager(), 256, 256, TextureOptions.BILINEAR);
this.m_Font = FontFactory.createFromAsset(m_activity.getFontManager(), fontTexture, m_activity.getAssets(), "Droid.ttf", 48, true, android.graphics.Color.WHITE);
this.m_Font.load();
Text text = new Text(100, 300, this.m_Font, "LoadingScreen", new TextOptions(HorizontalAlign.RIGHT), m_activity.getVertexBufferObjectManager());
m_background.attachChild(text);
ここで、このバックグラウンドエンティティのアルファを0に設定します。
m_background.setAlpha(0.0f);
子の実体も影響を受けるという印象を受けましたが、そうではありませんか?子エンティティに直接アルファを設定する以外に、これを行うにはどうすればよいですか?もっと良い方法はありますか?
よろしくお願いします、Zerd