C# Class RadioBtnGroup, marblemadness

A class which encapsulates all that is required to track and manage radio buttons as a group.
Afficher le fichier Open project: MtvnGames/marblemadness Class Usage Examples

Méthodes publiques

Свойство Type Description
buttons ArrayList
groupID int

Méthodes publiques

Méthode Description
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

Method Details

GetGroup() public static méthode

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).
Résultat RadioBtnGroup,

GetSelected() public static méthode

Returns a reference to the selected radio button for the specified group.
public static GetSelected ( GameObject go ) : IRadioButton
go GameObject
Résultat IRadioButton

GetSelected() public static méthode

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).
Résultat IRadioButton

RadioBtnGroup() public méthode

public RadioBtnGroup ( int id ) : UnityEngine
id int
Résultat UnityEngine

Property Details

buttons public_oe property

public ArrayList buttons
Résultat ArrayList

groupID public_oe property

public int groupID
Résultat int