Logo
Layout

Radial Layout Group

Arrange UI children around an arc or circle

Overview

Radial Layout Group positions children around a circle or arc. Use it for radial menus, dials, and circular groups of controls.

Preview

Usage

Add Radial Layout Group to the parent of your UI items.

Size the parent rectangle and its padding, then set the start and end angles.

Choose clockwise ordering and even distribution.

Enable Face Center if each item should rotate toward the middle.


Customization

  • Disable Even Distribution to use custom angular spacing.
  • Control Child Size and Child Size let the layout size every item consistently

Public API

Use RadialLayoutGroup in the Evo.UI namespace.

Properties

NameTypeDescription
RadiusfloatRead-only radius derived from the padded parent rectangle.
StartAnglefloatFirst angle of the arc.
EndAnglefloatLast angle of the arc.
ClockwiseboolDirection of item ordering.
EvenDistributionboolDistributes items evenly.
CustomSpacingfloatAngular spacing when distribution is manual.
FaceCenterboolRotates items toward the center.
ControlChildSizeboolApplies a common child size.
ChildSizeVector2Dimensions used when child sizing is enabled.

Example

RadialLayoutGroupExample.cs
using UnityEngine;
using Evo.UI;

public class RadialLayoutGroupExample : MonoBehaviour
{
    [SerializeField] private RadialLayoutGroup target;

    private void Start()
    {
        target.padding = new RectOffset(20, 20, 20, 20);
        target.StartAngle = 0f;
        target.EndAngle = 360f;
        target.EvenDistribution = true;
    }
}

On this page