mirror of
https://github.com/peng-zhihui/ElectronBot.git
synced 2026-10-22 23:39:58 +08:00
31 lines
570 B
C#
31 lines
570 B
C#
namespace UIWidgets.Examples
|
|
{
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// Test groupable.
|
|
/// </summary>
|
|
public class TestGroupable : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// Selection.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public Groupable Selection;
|
|
|
|
/// <summary>
|
|
/// Elements to select.
|
|
/// </summary>
|
|
[SerializeField]
|
|
public List<RectTransform> Elements = new List<RectTransform>();
|
|
|
|
/// <summary>
|
|
/// Select elements.
|
|
/// </summary>
|
|
public void SelectElements()
|
|
{
|
|
Selection.SetSelected(Elements);
|
|
}
|
|
}
|
|
} |