-
Notifications
You must be signed in to change notification settings - Fork 17
How to adjust size of TextSprite? #30
Copy link
Copy link
Open
Description
I have a fixed scene with a stationary camera. When I try creating the TextSprite, the text is massive and I have to push it back along the z axis significantly to get it to fit. What's the right way to resize the sprite?
practiceErrorSprite = new THREE.TextSprite({
text: 'Not Quite! Try again',
alignment: 'center',
// fontFamily: 'Arial, Helvetica, sans-serif',
fontSize: 8,
fontStyle: 'bold',
color: '#ec1b27',
});
practiceErrorSprite.visible = false;
// practiceErrorSprite.scale.set(0.1, 0.1, 0.1)
// Can't figure out how to resize.
practiceErrorSprite.position.set(0, -40, -70)
scene.add(practiceErrorSprite);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels