Skip to content

Class: WorldPanel

UI component container for world space

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new WorldPanel(): WorldPanel

Returns

WorldPanel

Overrides

UIPanel.constructor

Defined in

src/components/gui/uiComponents/WorldPanel.ts:15

Properties

object3D

object3D: Object3D = null

owner object3D

Inherited from

UIPanel.object3D

Defined in

src/components/ComponentBase.ts:17


isDestroyed

Optional isDestroyed: boolean

Inherited from

UIPanel.isDestroyed

Defined in

src/components/ComponentBase.ts:38


needUpdateGeometry

needUpdateGeometry: boolean = true

Inherited from

UIPanel.needUpdateGeometry

Defined in

src/components/gui/uiComponents/UIPanel.ts:21


panelOrder

panelOrder: number = 0

Inherited from

UIPanel.panelOrder

Defined in

src/components/gui/uiComponents/UIPanel.ts:22


needSortOnCameraZ

Optional needSortOnCameraZ: boolean

Inherited from

UIPanel.needSortOnCameraZ

Defined in

src/components/gui/uiComponents/UIPanel.ts:23


scissorEnable

scissorEnable: boolean = false

Inherited from

UIPanel.scissorEnable

Defined in

src/components/gui/uiComponents/UIPanel.ts:27


scissorCornerRadius

scissorCornerRadius: number = 0

Inherited from

UIPanel.scissorCornerRadius

Defined in

src/components/gui/uiComponents/UIPanel.ts:28


scissorFadeOutSize

scissorFadeOutSize: number = 0

Inherited from

UIPanel.scissorFadeOutSize

Defined in

src/components/gui/uiComponents/UIPanel.ts:29


panelRatio

panelRatio: number = 1

Inherited from

UIPanel.panelRatio

Defined in

src/components/gui/uiComponents/UIPanel.ts:35


isUIPanel

Readonly isUIPanel: true

Inherited from

UIPanel.isUIPanel

Defined in

src/components/gui/uiComponents/UIPanel.ts:36


isUIShadow

Optional isUIShadow: boolean

Inherited from

UIPanel.isUIShadow

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:12


isShadowless

Optional isShadowless: boolean

Inherited from

UIPanel.isShadowless

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:13


needUpdateShadow

needUpdateShadow: boolean

Inherited from

UIPanel.needUpdateShadow

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:14


isWorldPanel

Readonly isWorldPanel: true

Defined in

src/components/gui/uiComponents/WorldPanel.ts:11


space

Readonly space: GUISpace = GUISpace.World

Overrides

UIPanel.space

Defined in

src/components/gui/uiComponents/WorldPanel.ts:12

Accessors

eventDispatcher

get eventDispatcher(): CEventDispatcher

Returns

CEventDispatcher

Inherited from

UIPanel.eventDispatcher

Defined in

src/components/ComponentBase.ts:23

set eventDispatcher(value): void

Parameters

NameType
valueCEventDispatcher

Returns

void

Inherited from

UIPanel.eventDispatcher

Defined in

src/components/ComponentBase.ts:28


isStart

get isStart(): boolean

Returns

boolean

Inherited from

UIPanel.isStart

Defined in

src/components/ComponentBase.ts:40


transform

get transform(): Transform

Return the Transform component attached to the Object3D.

Returns

Transform

Inherited from

UIPanel.transform

Defined in

src/components/ComponentBase.ts:47


enable

get enable(): boolean

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Returns

boolean

Inherited from

UIPanel.enable

Defined in

src/components/ComponentBase.ts:68

set enable(value): void

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Parameters

NameType
valueboolean

Returns

void

Inherited from

UIPanel.enable

Defined in

src/components/ComponentBase.ts:54


uiTransform

get uiTransform(): UITransform

Returns

UITransform

Inherited from

UIPanel.uiTransform

Defined in

src/components/gui/uiComponents/UIComponentBase.ts:16


visible

get visible(): boolean

Returns

boolean

Inherited from

UIPanel.visible

Defined in

src/components/gui/uiComponents/UIComponentBase.ts:20

set visible(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

UIPanel.visible

Defined in

src/components/gui/uiComponents/UIComponentBase.ts:24


sprite

get sprite(): GUISprite

Returns

GUISprite

Inherited from

UIPanel.sprite

Defined in

src/components/gui/uiComponents/UIImage.ts:54

set sprite(value): void

Parameters

NameType
valueGUISprite

Returns

void

Inherited from

UIPanel.sprite

Defined in

src/components/gui/uiComponents/UIImage.ts:34


color

get color(): Color

Returns

Color

Inherited from

UIPanel.color

Defined in

src/components/gui/uiComponents/UIImage.ts:74

set color(value): void

Parameters

NameType
valueColor

Returns

void

Inherited from

UIPanel.color

Defined in

src/components/gui/uiComponents/UIImage.ts:78


imageType

get imageType(): ImageType

Returns

ImageType

Inherited from

UIPanel.imageType

Defined in

src/components/gui/uiComponents/UIImage.ts:85

set imageType(value): void

Parameters

NameType
valueImageType

Returns

void

Inherited from

UIPanel.imageType

Defined in

src/components/gui/uiComponents/UIImage.ts:89


quadMaxCount

get quadMaxCount(): number

Return How many Quads can a single GUIGeometry support at most

Returns

number

Inherited from

UIPanel.quadMaxCount

Defined in

src/components/gui/uiComponents/UIPanel.ts:92


renderer

get renderer(): GUIRenderer

Returns

GUIRenderer

Inherited from

UIPanel.renderer

Defined in

src/components/gui/uiComponents/UIPanel.ts:96


billboard

get billboard(): BillboardType

Returns

BillboardType

Inherited from

UIPanel.billboard

Defined in

src/components/gui/uiComponents/UIPanel.ts:114

set billboard(type): void

Parameters

NameType
typeBillboardType

Returns

void

Inherited from

UIPanel.billboard

Defined in

src/components/gui/uiComponents/UIPanel.ts:100


cullMode

get cullMode(): GPUCullMode

Returns

GPUCullMode

Inherited from

UIPanel.cullMode

Defined in

src/components/gui/uiComponents/UIPanel.ts:128

set cullMode(value): void

Parameters

NameType
valueGPUCullMode

Returns

void

Inherited from

UIPanel.cullMode

Defined in

src/components/gui/uiComponents/UIPanel.ts:118


mainQuads

get mainQuads(): GUIQuad[]

Returns

GUIQuad[]

Inherited from

UIPanel.mainQuads

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:44


depthTest

get depthTest(): boolean

Returns

boolean

Defined in

src/components/gui/uiComponents/WorldPanel.ts:30

set depthTest(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

src/components/gui/uiComponents/WorldPanel.ts:34

Methods

stop

stop(): void

Returns

void

Inherited from

UIPanel.stop

Defined in

src/components/ComponentBase.ts:114


onEnable

onEnable(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

UIPanel.onEnable

Defined in

src/components/ComponentBase.ts:115


onDisable

onDisable(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

UIPanel.onDisable

Defined in

src/components/ComponentBase.ts:116


onLateUpdate

onLateUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

UIPanel.onLateUpdate

Defined in

src/components/ComponentBase.ts:118


onBeforeUpdate

onBeforeUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

UIPanel.onBeforeUpdate

Defined in

src/components/ComponentBase.ts:119


onCompute

onCompute(view?, command?): any

Parameters

NameType
view?View3D
command?GPUCommandEncoder

Returns

any

Inherited from

UIPanel.onCompute

Defined in

src/components/ComponentBase.ts:120


onGraphic

onGraphic(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

UIPanel.onGraphic

Defined in

src/components/ComponentBase.ts:121


onParentChange

onParentChange(lastParent?, currentParent?): any

Parameters

NameType
lastParent?Object3D
currentParent?Object3D

Returns

any

Inherited from

UIPanel.onParentChange

Defined in

src/components/ComponentBase.ts:122


onAddChild

onAddChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

UIPanel.onAddChild

Defined in

src/components/ComponentBase.ts:123


onRemoveChild

onRemoveChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

UIPanel.onRemoveChild

Defined in

src/components/ComponentBase.ts:124


beforeDestroy

beforeDestroy(force?): void

before release this component, object refrences are not be set null now.

Parameters

NameType
force?boolean

Returns

void

Inherited from

UIPanel.beforeDestroy

Defined in

src/components/ComponentBase.ts:200


init

init(param?): void

Parameters

NameType
param?any

Returns

void

Inherited from

UIPanel.init

Defined in

src/components/gui/uiComponents/UIPanel.ts:57


updateDrawCallSegment

updateDrawCallSegment(index, indexStart, indexCount): void

Parameters

NameType
indexnumber
indexStartnumber
indexCountnumber

Returns

void

Inherited from

UIPanel.updateDrawCallSegment

Defined in

src/components/gui/uiComponents/UIPanel.ts:64


onUpdate

onUpdate(view?): void

Parameters

NameType
view?View3D

Returns

void

Inherited from

UIPanel.onUpdate

Defined in

src/components/gui/uiComponents/UIPanel.ts:132


destroy

destroy(): void

release this component

Returns

void

Inherited from

UIPanel.destroy

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:21


start

start(): void

Returns

void

Inherited from

UIPanel.start

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:30


setShadowRenderer

setShadowRenderer(value): void

Parameters

NameType
valueUIRenderAble

Returns

void

Inherited from

UIPanel.setShadowRenderer

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:48


setShadowSource

setShadowSource(value): void

Parameters

NameType
valueUIRenderAble

Returns

void

Inherited from

UIPanel.setShadowSource

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:52


getShadowRender

getShadowRender(): UIRenderAble

Returns

UIRenderAble

Inherited from

UIPanel.getShadowRender

Defined in

src/components/gui/uiComponents/UIRenderAble.ts:56


cloneTo

cloneTo(obj): void

clone component data to target object3D

Parameters

NameTypeDescription
objObject3Dtarget object3D

Returns

void

Overrides

UIPanel.cloneTo

Defined in

src/components/gui/uiComponents/WorldPanel.ts:19


copyComponent

copyComponent(from): this

Parameters

NameType
fromthis

Returns

this

Overrides

UIPanel.copyComponent

Defined in

src/components/gui/uiComponents/WorldPanel.ts:24