Editor.Components.ExtrudeDirection
EnumSettings used with Editor.Components.Text3D.
Index
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
// Create a Text3D component and set extrude direction
const obj = scene.createSceneObject('Text3D');
const text3d = obj.addComponent('Text3D');
text3d.text = 'Hello';
text3d.extrudeDirection = Editor.Components.ExtrudeDirection.Both;
text3d.extrusionDepth = 5;
console.log(`extrudeDirection: ${text3d.extrudeDirection}`);
Enumeration Members
Backwards
Backwards:
number
Extrude in the backward direction.
Both
Both:
number
Extrude in both forward and backward directions.
Forwards
Forwards:
number
Extrude in the forward direction.