format
typescript
UIComponent.uiOccludedBy3Dclass: UIComponent
description
Whether the current UI is in a 3D environment.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
boolean |
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.uiOccludedBy3D;