Roblox Gui

TabooHarmony/roblox-brain/skills/gameplay/roblox-gui

作者 TabooHarmony38826be57ee37bcf023e9c2b85681bea3909281c無授權條款收錄於 2026年10月9日更新於 2026年10月9日

Use when building Roblox menus, HUDs, shops, notifications, dialogs, or responsive cross-platform UI.

AI 產生的概覽

用於建置 Roblox 介面(例如 HUD、選單、商店、對話框與通知)的指引。

功能
此技能提供設計與實作 Roblox 使用者介面的說明與參考資料,涵蓋 ScreenGui 疊加層、SurfaceGui、BillboardGui、版面配置、縮放與輸入處理。內容包括響應式跨平台介面、遊戲手把焦點導覽、安全區域、捲動與文字成長,以及響應式介面的生命週期問題。它也涉及顯示伺服器狀態,並透過 Input Actions 傳遞遊戲輸入。參考檔案包含版面配置與生命週期範例。
適用情境
在建置 Roblox 選單、HUD、商店、對話框、通知或世界空間介面時使用。也適用於讓 Roblox 介面在觸控、遊戲手把與桌面端保持響應式,或解決捲動、裁切與安全區域問題。
執行需求
不隨附指令碼,僅為說明文件與一份參考文件。需要 Roblox 開發環境,並熟悉 Roblox 介面類別與服務。

roblox gui

When to Load

Load for HUDs, menus, shops, dialogs, notifications, or world-space UI.

Quick Reference

  • ScreenGui overlays; SurfaceGui on surfaces; BillboardGui for world labels.
  • Let layouts and constraints own repeated layout; avoid per-frame pixel positioning.
  • Scale for responsive structure; Offset for padding/fixed-size details.
  • Design for touch/gamepad too. Use ContextActionService for gameplay bindings where appropriate.
  • Test directional focus; set GuiService.SelectedObject for gamepad entry.
  • Follow existing visual language and owner art direction; test UI over the game world.
  • UI displays server state; a button is not an authority boundary.
  • Reactive UI: own per-screen cleanup separately from session state; repeat open/close to test leaks (full.md).
  • Server Authority: display confirmed inventory/currency; route gameplay input through Input Actions.
  • Resolve scrolling, text growth, clipping, and safe areas before polish.
  • Loading UI belongs in ReplicatedFirst; client character teleports are not readiness gates.

Layout and lifecycle examples: references/full.md [blocked]

來源與署名

來源:TabooHarmony/roblox-brain位於skills/gameplay/roblox-gui提交38826be

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架