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 从公开仓库中收录这些内容。

举报或申请下架