Skip to content

TextStudio3DControlLayout

ClassTextStudio.ThreeDTextStudio.3D
[ExecuteAlways]
[AddComponentMenu("Text Studio/Spatial UI/3D Control Layout")]
[DisallowMultipleComponent]
public sealed class TextStudio3DControlLayout : MonoBehaviour

Arranges an ordered set of spatial controls in linear, grid, circular, spline, or volume layouts.

public void RefreshControls()

Rebuilds the ordered control list from descendants when child discovery is enabled, then reapplies the layout.

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[]
public void Arrange()

Places every configured control according to the current layout mode, spacing, orientation, and alignment settings.

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

public TextStudio3DControlLayout()

public TextStudio3DControlLayoutMode Mode { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DControlLayoutMode

public bool UseChildControls { get; set; }

Returns

System.Boolean

public Vector3 Spacing { get; set; }

Returns

UnityEngine.Vector3

public int Columns { get; set; }

Returns

System.Int32

public float Radius { get; set; }

Returns

System.Single