i looking for Static text, which i can place with x / y / z and also the Size and only OPTIONAL background.
At the moment i only find drawText which only works with Background and i don’t understand how to place the text in the plane like i want …
And it should not follow the camera
do you have a other function which i can use?
If it’s with GUI than i need more explain 'cause when i try to include GUI i get Errors in the Console…
I hope you can Help me.
(Here my current Code how i place Text)
function createText(text, x, y, z, scene)
var outputplane = BABYLON.Mesh.CreatePlane(“outputplane”, 25, scene, false);
outputplane.billboardMode = BABYLON.AbstractMesh.BILLBOARDMODE_ALL;
outputplane.material = new BABYLON.StandardMaterial(“outputplane”, scene);
outputplane.position = new BABYLON.Vector3(x, y, z);
outputplane.scaling.y = 0.4
var outputplaneTexture = new BABYLON.DynamicTexture(“dynamic texture”, 256, scene, true);
outputplane.material.diffuseTexture = outputplaneTexture;
outputplane.material.backFaceCulling = false;
outputplaneTexture.drawText(text, null, 150, “bold 60px verdana”, “black”, “RGBA(255,255,255, 0.5)”);