Extrude3DStyle
public class Extrude3DStyle : ScriptableObjectReusable 3D text style preset. Controls extrusion, bevels, and material assignment. Create via Assets → Create → Text Studio → 3D → Extrude Style, or via the Create button in the Text Studio 3D inspector.
Methods
Section titled “Methods”
SetTagIdentity(string, TextStudioAppearanceApplyMode)
Section titled “SetTagIdentity(string, TextStudioAppearanceApplyMode)”public void SetTagIdentity(string id, TextStudioAppearanceApplyMode defaultApplyMode = TextStudioAppearanceApplyMode.Replace)Sets a stable markup ID independently of the asset filename. Empty IDs remain ordinary styles.
Parameters
| Name | Type |
|---|---|
id |
System.String |
defaultApplyMode |
TextStudio.TextStudioAppearanceApplyMode |
ApplySettings(TextStudio3DLayer[], float, float)
Section titled “ApplySettings(TextStudio3DLayer[], float, float)”public void ApplySettings(TextStudio3DLayer[] layers, float flattenTolerance, float autoSmoothAngle)Copies the complete authored style without changing its catalog identity.
Parameters
| Name | Type |
|---|---|
layers |
TextStudio.ThreeD.TextStudio3DLayer[] |
flattenTolerance |
System.Single |
autoSmoothAngle |
System.Single |
ApplyPreset(Preset)
Section titled “ApplyPreset(Preset)”public void ApplyPreset(BuiltInExtrudeStyles.Preset preset)Replace this style's layers with one of the built-in presets. Called from the editor's "Apply Preset" dropdown. Safe to call at runtime too.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Constructors
Section titled “Constructors”
Extrude3DStyle()
Section titled “Extrude3DStyle()”public Extrude3DStyle()Properties
Section titled “Properties”
Layers
Section titled “Layers”public TextStudio3DLayer[] Layers { get; }Returns
TextStudio.ThreeD.TextStudio3DLayer[]
FlattenTolerance
Section titled “FlattenTolerance”public float FlattenTolerance { get; }Returns
System.Single
AutoSmoothAngle
Section titled “AutoSmoothAngle”public float AutoSmoothAngle { get; }Returns
System.Single
public string Id { get; }Returns
System.String
DefaultApplyMode
Section titled “DefaultApplyMode”public TextStudioAppearanceApplyMode DefaultApplyMode { get; }Returns
TextStudio.TextStudioAppearanceApplyMode
Revision
Section titled “Revision”public int Revision { get; }Returns
System.Int32