Skip to content

BuiltInBevelProfiles

ClassTextStudio.ThreeDTextStudio.3D
public static class BuiltInBevelProfiles

Code-defined library of reusable TextStudio.ThreeD.BevelProfile assets. Instances are lazily allocated as hidden scriptable objects (UnityEngine.HideFlags.HideAndDontSave) so they survive domain reload without leaking into the user’s project, yet authoring workflows can drop them into inspector slots like any asset.

Each entry is a 2D polyline in normalised [0..1]²: the x coordinate is the radial offset into the bevel, the y coordinate is the offset along the extrusion axis. See TextStudio.ThreeD.BevelProfile for the full convention.

public static BevelProfile Get(BuiltInBevelProfiles.Id id)

Retrieve (and lazily construct) the named profile.

Parameters

Name Type
id TextStudio.ThreeD.BuiltInBevelProfiles.Id

Returns

TextStudio.ThreeD.BevelProfile

public static Vector2[] Generate(BuiltInBevelProfiles.Id id, int segments = 0)

Generate an independent sample array for a canonical profile. A segment count of zero uses the reviewed default for that profile; positive values resample curved profiles.

Parameters

Name Type
id TextStudio.ThreeD.BuiltInBevelProfiles.Id
segments System.Int32

Returns

UnityEngine.Vector2[]

public static BevelProfile Build(BuiltInBevelProfiles.Id id, int segments = 0)

Construct an editable runtime profile from a canonical starting shape.

Parameters

Name Type
id TextStudio.ThreeD.BuiltInBevelProfiles.Id
segments System.Int32

Returns

TextStudio.ThreeD.BevelProfile

public static (BuiltInBevelProfiles.Id id, string displayName, Vector2[] samples, bool smooth)[] BuildAll(int segments = 0)

Return every canonical profile for editor materialization and browsers.

Parameters

Name Type
segments System.Int32

Returns

System.ValueTuple{TextStudio.ThreeD.BuiltInBevelProfiles.Id,System.String,UnityEngine.Vector2[],System.Boolean}[]

public static string DisplayName(BuiltInBevelProfiles.Id id)

Returns the customer-facing name for a canonical bevel profile.

Parameters

Name Type
id TextStudio.ThreeD.BuiltInBevelProfiles.Id

Returns

System.String

public static bool IsSmooth(BuiltInBevelProfiles.Id id)

Reports whether a canonical profile should interpolate smoothly between its sampled rings.

Parameters

Name Type
id TextStudio.ThreeD.BuiltInBevelProfiles.Id

Returns

System.Boolean

public static BevelProfile Default { get; }

Default fallback used when a layer’s bevel profile is null.

Returns

TextStudio.ThreeD.BevelProfile