BuiltInBevelProfiles
public static class BuiltInBevelProfilesCode-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.
Methods
Section titled “Methods”
Get(Id)
Section titled “Get(Id)”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
Generate(Id, int)
Section titled “Generate(Id, int)”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[]
Build(Id, int)
Section titled “Build(Id, int)”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
BuildAll(int)
Section titled “BuildAll(int)”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}[]
DisplayName(Id)
Section titled “DisplayName(Id)”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
IsSmooth(Id)
Section titled “IsSmooth(Id)”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
Properties
Section titled “Properties”
Default
Section titled “Default”public static BevelProfile Default { get; }Default fallback used when a layer’s bevel profile is null.
Returns
TextStudio.ThreeD.BevelProfile