Skip to content

Class: GUIGeometryRebuild

This class is responsible for performing the Geometry reconstruction work of the GUI

Constructors

Methods

Constructors

constructor

new GUIGeometryRebuild(): GUIGeometryRebuild

Returns

GUIGeometryRebuild

Methods

build

build(transforms, panel, forceUpdate): boolean

Rebuild a specified GUI Mesh Check and rebuild a GUI Mesh, including geometry and materials

Parameters

NameTypeDescription
transformsUITransform[]Fill in the UITransform list for the specified GUI Mesh
panelUIPanelSpecify the GUI Mesh object for reconstructing Geometry
forceUpdatebooleanwhether need to force refactoring

Returns

boolean

Return the build result (the maximum number of textures supported by GUIMaterials for a single UIPanel is limited and cannot exceed the limit)

Defined in

src/components/gui/core/GUIGeometryRebuild.ts:27