CirclePlacement
public class CirclePlacement : IPlacementContextStrategy, IPlacementStrategyCircle placement: distributes glyphs evenly around a full circle. Rotation is handled by the hub-level TextStudio.PlacementOrientation module.
Fields
Section titled “Fields”
radius
Section titled “radius”public float radiusReturns
System.Single
autoFitRadius
Section titled “autoFitRadius”[Tooltip("Automatically increases the effective radius when the current text layout would overlap on the authored radius.")]public bool autoFitRadiusReturns
System.Boolean
autoFitPadding
Section titled “autoFitPadding”[Tooltip("Extra spacing applied by Auto Fit Radius. 1 = exact fit, higher values add breathing room.")][Range(1, 2)]public float autoFitPaddingReturns
System.Single
startAngle
Section titled “startAngle”[Tooltip("Start angle offset in degrees (0 = top).")]public float startAngleReturns
System.Single
spacing
Section titled “spacing”[Tooltip("How glyphs are distributed around the circle.")]public PathSpacing spacingReturns
TextStudio.PathSpacing
reverse
Section titled “reverse”[Tooltip("Reverses progression around the circle.")]public bool reverseReturns
System.Boolean
radiusChange
Section titled “radiusChange”[Tooltip("Signed radius change from the first glyph to the last. Positive values spiral outward.")]public float radiusChangeReturns
System.Single
Methods
Section titled “Methods”
ComputePlacements(Vector3[], GlyphPlacement[], int)
Section titled “ComputePlacements(Vector3[], GlyphPlacement[], int)”public void ComputePlacements(Vector3[] layoutPositions, GlyphPlacement[] placements, int glyphCount)Compute placements for all visible glyphs.
Parameters
| Name | Type | Description |
|---|---|---|
layoutPositions |
UnityEngine.Vector3[] | Input: baseline positions from the layout engine. |
placements |
TextStudio.GlyphPlacement[] | Output: final 3D placements. |
glyphCount |
System.Int32 | Number of glyphs. |
ComputePlacements(in PlacementContext, GlyphPlacement[])
Section titled “ComputePlacements(in PlacementContext, GlyphPlacement[])”public void ComputePlacements(in PlacementContext context, GlyphPlacement[] placements)Writes placements for every visible glyph using its current layout and line metadata.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.PlacementContext |
placements |
TextStudio.GlyphPlacement[] |
Constructors
Section titled “Constructors”
CirclePlacement()
Section titled “CirclePlacement()”public CirclePlacement()Properties
Section titled “Properties”
public PlacementMode Mode { get; }Returns
TextStudio.PlacementMode