Skip to content

format

typescript
Control.toString()

class: Control

description

Returns the type alias of the control.

parameter

param_nametypedescription

reture

typedescription
string

code example

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