TextStudio3DControlLayout
[ExecuteAlways][AddComponentMenu("Text Studio/Spatial UI/3D Control Layout")][DisallowMultipleComponent]public sealed class TextStudio3DControlLayout : MonoBehaviourArranges an ordered set of spatial controls in linear, grid, circular, spline, or volume layouts.
Methods
Section titled “Methods”
RefreshControls()
Section titled “RefreshControls()”public void RefreshControls()Rebuilds the ordered control list from descendants when child discovery is enabled, then reapplies the layout.
SetControls(TextStudio3DControl[])
Section titled “SetControls(TextStudio3DControl[])”public void SetControls(TextStudio3DControl[] controls)Switches to an explicit defensive copy of the supplied controls and reapplies the layout.
Parameters
| Name | Type |
|---|---|
controls |
TextStudio.ThreeD.TextStudio3DControl[] |
Arrange()
Section titled “Arrange()”public void Arrange()Places every configured control according to the current layout mode, spacing, orientation, and alignment settings.
GetLocalPosition(int, int)
Section titled “GetLocalPosition(int, int)”public Vector3 GetLocalPosition(int index, int count)Calculates the local position assigned to an item without moving a control.
Parameters
| Name | Type | Description |
|---|---|---|
index |
System.Int32 | Zero-based item index. |
count |
System.Int32 | Total item count used for centering and angular distribution. |
Returns
UnityEngine.Vector3
Constructors
Section titled “Constructors”
TextStudio3DControlLayout()
Section titled “TextStudio3DControlLayout()”public TextStudio3DControlLayout()Properties
Section titled “Properties”
public TextStudio3DControlLayoutMode Mode { get; set; }Returns
TextStudio.ThreeD.TextStudio3DControlLayoutMode
UseChildControls
Section titled “UseChildControls”public bool UseChildControls { get; set; }Returns
System.Boolean
Spacing
Section titled “Spacing”public Vector3 Spacing { get; set; }Returns
UnityEngine.Vector3
Columns
Section titled “Columns”public int Columns { get; set; }Returns
System.Int32
Radius
Section titled “Radius”public float Radius { get; set; }Returns
System.Single