SelectedTextColor||doc136540

September 20, 2022

Format

RadioButton.SelectedTextColor

Describe

The text color when the radio box is selected.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the RadioButton control for testing according to the name
local radioBtn = APIRootWindow.APIRadioButton

--Set the text color of the selected state of the radio control
radioBtn.SelectedTextColor = Color3.Red