UnSelectedImage||doc136534

September 20, 2022

Format

Checkbox.UnSelectedImage

Describe

A picture whose check box is not selected.

Code Example

image.png

--创建布局窗口
local APIRootWindow = UI:CreateGUIWindow("API")

--设置窗口到UI的根节点下
APIRootWindow.Parent = UI.Root

--根据名字获取到测试用的Checkbox控件
local checkbox = APIRootWindow.APICheckbox

--设置复选框控件的非选中状态的图片
checkbox.UnSelectedImage = "asset/Texture/GUI/button_yellow_nor.png"