Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

textGeometry

Firtina Ozbalikci edited this page Jul 29, 2017 · 6 revisions

Wiki » Internal Components » Geometries » textGeometry

textGeometry

Creates a THREE.TextGeometry

Attributes

text

string required: The text that needs to be shown.

Default: 'TEXT MISSING'

font

THREE.Font required: The font for the text.

size

number required: The size of the text.

name

string: Name for this geometry.

Default: ''

vertices

array of THREE.Vector3: See THREE.Geometry#vertices.

Default: []

colors

array of THREE.Color: See THREE.Geometry#colors.

Default: []

faceVertexUvs

array of (array of (array of THREE.Vector2)): See THREE.Geometry#faceVertexUvs.

Default: []

faces

array of THREE.Face3: See THREE.Geometry#faces.

Default: []

dynamic

bool: See THREE.Geometry#dynamic.

Set to true if attribute buffers will need to change in runtime (using "dirty" flags).

Unless set to true internal typed arrays corresponding to buffers will be deleted once sent to GPU.

Default: false

height

number: The thickness to extrude text.

Default: 50

curveSegments

number: The number of points on the curves.

Default: 12

bevelEnabled

bool: Turn on bevel.

Default: false

bevelThickness

number: How deep into text bevel goes.

Default: 10

bevelSize

number: How far from text outline is bevel.

Default: 8

resourceId

string: The resource id of this object, only used if it is placed into resources.

Default: ''

Notes:

This component can be added into <resources/>! See Resource Types for more information.

===

View Source
Clone this wiki locally