ITextStudio3DAuthoring
public interface ITextStudio3DAuthoringFocused authoring and style contract for a Text Studio 3D renderer.
Methods
Section titled “Methods”
ApplyPreset(Preset)
Section titled “ApplyPreset(Preset)”void ApplyPreset(BuiltInExtrudeStyles.Preset preset)Replaces the authored layer stack with a detached copy of a built-in extrusion recipe.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
GetLayerSnapshot(int)
Section titled “GetLayerSnapshot(int)”TextStudio3DLayer GetLayerSnapshot(int index)Returns a detached copy of one authored layer, including its mutable stroke collection.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
TextStudio.ThreeD.TextStudio3DLayer
SetLayer(int, in TextStudio3DLayer)
Section titled “SetLayer(int, in TextStudio3DLayer)”void SetLayer(int index, in TextStudio3DLayer layer)Replaces one authored layer by copying the supplied value and schedules a geometry rebuild.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
layer |
TextStudio.ThreeD.TextStudio3DLayer |
InsertLayer(int, in TextStudio3DLayer)
Section titled “InsertLayer(int, in TextStudio3DLayer)”void InsertLayer(int index, in TextStudio3DLayer layer)Inserts a copied layer at a clamped index and schedules a geometry rebuild.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
layer |
TextStudio.ThreeD.TextStudio3DLayer |
MoveLayer(int, int)
Section titled “MoveLayer(int, int)”void MoveLayer(int sourceIndex, int destinationIndex)Moves an authored layer while preserving its data and schedules a geometry rebuild.
Parameters
| Name | Type |
|---|---|
sourceIndex |
System.Int32 |
destinationIndex |
System.Int32 |
RemoveLayerAt(int)
Section titled “RemoveLayerAt(int)”void RemoveLayerAt(int index)Removes the layer at the supplied index when it exists and schedules a geometry rebuild.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Properties
Section titled “Properties”
FontData
Section titled “FontData”Font3D FontData { get; set; }Returns
TextStudio.ThreeD.Font3D
ExtrudeStyle
Section titled “ExtrudeStyle”Extrude3DStyle ExtrudeStyle { get; set; }Returns
TextStudio.ThreeD.Extrude3DStyle
OutputMode
Section titled “OutputMode”MeshOutputMode OutputMode { get; set; }Returns
TextStudio.ThreeD.MeshOutputMode
LayerCount
Section titled “LayerCount”int LayerCount { get; }Returns
System.Int32