Skip to content

格式

typescript
Control.isShown

所属类: Control

描述

判断当前控件是否可见。

参数

参数名类型描述

返回值

类型描述
boolean是否可见

代码示例

typeScript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
let canvas = uiComponent.canvas;		
let button = canvas.FindChild(Button,"Button");
button.isShown;