Ich habe Probleme, Alpha auf eine untergeordnete Entität zu setzen. Ich erstelle eine Rechteck-Entität und hänge eine Text-Entität an das Rechteck wie folgt an:
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);
Jetzt möchte ich das Alpha dieses Hintergrundobjekts auf 0 setzen:
m_background.setAlpha(0.0f);
Ich hatte den Eindruck, dass auch die untergeordneten Einrichtungen betroffen sind, ist das nicht der Fall? Wie könnte ich dies tun, außer indem ich Alpha direkt auf die untergeordneten Entitäten setze? Gibt es einen besseren Weg?
Vielen Dank im Voraus, Zerd