Skip to content

Extrude3DStyle

ClassTextStudio.ThreeDTextStudio.3D
public class Extrude3DStyle : ScriptableObject

Reusable 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.

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
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

public Extrude3DStyle()

public TextStudio3DLayer[] Layers { get; }

Returns

TextStudio.ThreeD.TextStudio3DLayer[]

public float FlattenTolerance { get; }

Returns

System.Single

public float AutoSmoothAngle { get; }

Returns

System.Single

public string Id { get; }

Returns

System.String

public TextStudioAppearanceApplyMode DefaultApplyMode { get; }

Returns

TextStudio.TextStudioAppearanceApplyMode

public int Revision { get; }

Returns

System.Int32