format
typescript
UIComponent.uiPixelPerUnitYclass: UIComponent
description
The number of pixels per unit in the Y-axis direction for the current UI.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number |
code example
typescript
let go = new GameObject("ui");
let uiComponent = go.AddComponent<UIComponent>(UIComponent);
uiComponent.guiPrefab = Resources.Load<GUIPrefab>(GUIPrefab, "<UUID>");//<UUID>- is the UUID of the UI file
uiComponent.uiPixelPerUnitY;