CenterGUIModel()
Center GUI Model
Fit and center the model displayed inside a GUI 3D model viewer.
| Option key / field | Meaning and input | Default |
|---|---|---|
| GUI guiId | Choose an authored GUI ID. | Blank |
| 3D Model elementId | Choose an element inside the selected GUI. | Blank |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await CenterGUIModel({"guiId": "hud", "elementId": "topline"})In use. Offer a Reset View button after the player rotates a model. It targets the GUI viewer, not the scene's active gameplay camera or the model's source file.
