BuiltInExtrudeStyles
public static class BuiltInExtrudeStylesCode-defined 3D extrusion preset library. No shipped .asset files required. Resolved at runtime when no TextStudio.ThreeD.Extrude3DStyle is assigned, and exposed to the inspector’s preset picker so authors can one-click-apply a curated look.
Presets are organised by TextStudio.ThreeD.BuiltInExtrudeStyles.PresetCategory so the picker can group
them; each preset exposes a TextStudio.ThreeD.BuiltInExtrudeStyles.DisplayName(TextStudio.ThreeD.BuiltInExtrudeStyles.Preset) and TextStudio.ThreeD.BuiltInExtrudeStyles.Description(TextStudio.ThreeD.BuiltInExtrudeStyles.Preset)
for the UI.
Fields
Section titled “Fields”
CleanId
Section titled “CleanId”public const string CleanId = "style.3d.clean"Returns
System.String
BevelledId
Section titled “BevelledId”public const string BevelledId = "style.3d.bevelled"Returns
System.String
StackedId
Section titled “StackedId”public const string StackedId = "style.3d.stacked"Returns
System.String
Methods
Section titled “Methods”
GetRecipe(Preset)
Section titled “GetRecipe(Preset)”public static BuiltInExtrudeStyles.Recipe GetRecipe(BuiltInExtrudeStyles.Preset preset)Returns the complete inspectable public-data recipe for a built-in style.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Returns
TextStudio.ThreeD.BuiltInExtrudeStyles.Recipe
Get(Preset)
Section titled “Get(Preset)”public static TextStudio3DLayer[] Get(BuiltInExtrudeStyles.Preset preset)Returns a fresh mutable layer array for a built-in recipe so callers can customize it without altering the catalog.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Returns
TextStudio.ThreeD.TextStudio3DLayer[]
Category(Preset)
Section titled “Category(Preset)”public static BuiltInExtrudeStyles.PresetCategory Category(BuiltInExtrudeStyles.Preset p)Returns the authoring category used to group a built-in preset in selection UIs.
Parameters
| Name | Type |
|---|---|
p |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Returns
TextStudio.ThreeD.BuiltInExtrudeStyles.PresetCategory
DisplayName(Preset)
Section titled “DisplayName(Preset)”public static string DisplayName(BuiltInExtrudeStyles.Preset preset)Returns the customer-facing name for a built-in extrusion preset.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Returns
System.String
Description(Preset)
Section titled “Description(Preset)”public static string Description(BuiltInExtrudeStyles.Preset preset)Returns a concise description of the geometry character and intended use of a built-in preset.
Parameters
| Name | Type |
|---|---|
preset |
TextStudio.ThreeD.BuiltInExtrudeStyles.Preset |
Returns
System.String