Skip to content

format

typescript
Control.name

class: Control

description

The name of the current control.

parameter

param_nametypedescription

reture

typedescription
string- The name of the control as a 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.name;