For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/classes/WidgetComponentRenderPrimitive.md.

Class: WidgetComponentRenderPrimitive experimental

component

Beta

Extends

Properties

componentType

readonly componentType: WidgetComponentType

Beta

Throws

This property can throw when used.

InvalidWidgetComponentError

Inherited from

WidgetComponentBase.componentType


location

readonly location: Vector3

Beta

Throws

This property can throw when used.

InvalidWidgetComponentError

Inherited from

WidgetComponentBase.location


lockToSurface

lockToSurface: boolean

World Mutation Beta

Remarks

Inherited from

WidgetComponentBase.lockToSurface


name

readonly name: string

Beta

Throws

This property can throw when used.

InvalidWidgetComponentError

Inherited from

WidgetComponentBase.name


offset

offset: Vector3

World Mutation Beta

Remarks

Inherited from

WidgetComponentBase.offset


primitiveType

readonly primitiveType: PrimitiveType

Beta

Throws

This property can throw when used.

InvalidWidgetComponentError

InvalidWidgetError


valid

readonly valid: boolean

Beta

Inherited from

WidgetComponentBase.valid


visible

visible: boolean

Beta

Inherited from

WidgetComponentBase.visible


widget

readonly widget: Widget

Beta

Throws

This property can throw when used.

InvalidWidgetComponentError

Inherited from

WidgetComponentBase.widget

Methods

delete()

delete(): void

World Mutation Beta

Returns

void

Remarks

Throws

This function can throw errors.

InvalidWidgetComponentError

Inherited from

WidgetComponentBase.delete


setPrimitive()

setPrimitive(primitive): void

World Mutation Beta

Parameters

primitive

WidgetComponentRenderPrimitiveTypeAxialSphere | WidgetComponentRenderPrimitiveTypeBox | WidgetComponentRenderPrimitiveTypeCone | WidgetComponentRenderPrimitiveTypeCuboid | WidgetComponentRenderPrimitiveTypeCylinder | WidgetComponentRenderPrimitiveTypeDisc | WidgetComponentRenderPrimitiveTypeEllipsoid | WidgetComponentRenderPrimitiveTypeLine | WidgetComponentRenderPrimitiveTypePyramid | WidgetComponentRenderPrimitiveTypeWireframeMesh

Returns

void

Remarks

Throws

This function can throw errors.

InvalidWidgetComponentError

InvalidWidgetError

同领域相关