Creates a text geometry from a specified string, extruded with a specified depth.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The extent of the text geometry in the Z dimension of its local coordinate space. Specify a depth of
0to create 2D text confined to a plane.
A new text geometry.
In the local coordinate system of the text geometry, the origin corresponds to the lower left corner of the text’s layout rectangle, with the text extending in the x- and y-axis dimensions. (SceneKit computes a layout rectangle automatically, or you can specify one using the
container property.) The geometry is centered along its z-axis. For example, if its
extrusion property is
1, the geometry extends from
0 along the z-axis. An extrusion depth of zero creates a flat, one-sided shape—the geometry is confined to the plane whose z-coordinate is
0, and viewable only from its front unless its material’s
is property is