niwatly / SectorLayoutGroup

Align children along the custom sector shape in Unity.

Home Page:https://twitter.com/BTF_TCG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SectorLayoutGroup

SectorLayoutGroup allows you to align children along the custom sector shape in Unity.

You can define a sector shape in 3D, and adjust the following parameters by game object positioning.

  1. Center Position
  2. Start Position
  3. End Position

If you don't need the sector but circle, uGUI-Circle-Layout-Group is more simply.

Demos

Requirement

UniRx

Usage

  1. Import the SectorLayoutGroup.cs script to your project.
  2. Create a new game object and attach the SectorLayoutGroup.
  3. Create the new game object inside the SectorLayoutGroup game object, and attach to the SectorLayoutGroup parameter Center.
  4. In the same way, create a new game object as the Start.
  5. In the same way, create a new game object as the End.

These steps are packed in the SectorTemplate as Prefab!

Custom Parameters

child rotation offset

You can adjust where chilren look at. By default, children look at the Center.

Animation Settings

When a child has beeen added to SectorLayoutGroup game object in play mode, children moves new position smootly.

you can adjust the moving speed and duraton by editing the FrameCount and FrameInterval parameters,

Author

Niwatly

About

Align children along the custom sector shape in Unity.

https://twitter.com/BTF_TCG


Languages

Language:C# 100.0%