Skip to content

How to adjust size of TextSprite? #30

@RylanSchaeffer

Description

@RylanSchaeffer

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions