C# Класс RadioBtnGroup, marblemadness

A class which encapsulates all that is required to track and manage radio buttons as a group.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
buttons ArrayList
groupID int

Открытые методы

Метод Описание
GetGroup ( int id ) : RadioBtnGroup,

Returns a reference to the radio button group specified by "id".

GetSelected ( GameObject go ) : IRadioButton

Returns a reference to the selected radio button for the specified group.

GetSelected ( int id ) : IRadioButton

Returns a reference to the selected radio button for the specified group.

RadioBtnGroup ( int id ) : UnityEngine

Описание методов

GetGroup() публичный статический Метод

Returns a reference to the radio button group specified by "id".
public static GetGroup ( int id ) : RadioBtnGroup,
id int The ID of the group (either an arbitrary integer ID, or the hashcode of a radio button's parent transform, depending on the settings).
Результат RadioBtnGroup,

GetSelected() публичный статический Метод

Returns a reference to the selected radio button for the specified group.
public static GetSelected ( GameObject go ) : IRadioButton
go GameObject
Результат IRadioButton

GetSelected() публичный статический Метод

Returns a reference to the selected radio button for the specified group.
public static GetSelected ( int id ) : IRadioButton
id int The ID of the group (either an arbitrary integer ID, or the hashcode of a radio button's parent transform, depending on the settings).
Результат IRadioButton

RadioBtnGroup() публичный Метод

public RadioBtnGroup ( int id ) : UnityEngine
id int
Результат UnityEngine

Описание свойств

buttons публичное свойство

public ArrayList buttons
Результат ArrayList

groupID публичное свойство

public int groupID
Результат int