setText on 3d text does not remove previous text

Hi,



I have a text attached to 3d space like this:

[java]BitmapFont fnt = MainGame.getAsset().loadFont(“Interface/Fonts/Default.fnt”);

title = new BitmapText(fnt, false);

title.setBox(new Rectangle(0, 0, 6, 3));

title.setQueueBucket(Bucket.Translucent);

title.setSize( 0.5f );

title.setText(“Mechanized Infantry”);

title.setLocalTranslation(1,height-0.5f,1);

attachChild(title);[/java]



if I do title.setText(“Tank”) then the text will say Tankanized Infantry because the rest of the text isnt removed…

Is this a bug or should I do something else while updating the text?

It’s a known issue on android, but do you have this on Desktop?



For now the workaround is pretty ugly, you have to add white spaces after your word…

Yea it was android. Ohwell, thanks for the intel :smiley: