format
typescript
Control.isShownclass: Control
description
Check if the current control is visible.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
boolean | Whether it is visible or not. |
code example
typeScript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
let canvas = uiComponent.canvas;
let button = canvas.FindChild("Button");
button.isShown;