百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

RosettaUI

> 编程语言
开源

基于代码的 UI 库,用于 Unity 的开发菜单

582 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

基于代码的 UI 库,用于 Unity 的开发菜单

RosettaUI

Code-based UI library for development menu for Unity

…

✨ Features

  • Undo/Redo surpport (runtime only)

  • Inspector-like visual editor for Gradient and AnimationCurve at runtime

  • Inspector-compatible Copy and Paste

Ver1 → Ver2 Migration

Please remove the RosettaUI.UIToolkit package from the Package Manager.
In Ver2, the RosettaUI.UIToolkit package is now included in the RosettaUI package.

Keyboard.current.onTextInput

If you are using Keyboard.current.onTextInput, be aware that it now also fires during UI operations..
Consider using KeyControl (e.g., Keyboard.current[Key.A].wasPressedThisFrame) as an alternative.

⬇️ Installation

This package uses the scoped registry feature to resolve package dependencies.

Edit > ProjectSettings... > Package Manager > Scoped Registries

Enter the following and click the Save button.

"name": "fuqunaga",
"url": "https://registry.npmjs.com",
"scopes": [ "ga.fuquna" ]

Window > Package Manager

Select MyRegistries> fuqunaga > RosettaUI and click the Install button

Input System (optional)

RosettaUI recommends using Input System.
See Tips.

Install according to the official documentation.
https://docs.unity3d.com/Packages/[email protected]/manual/Installation.html

How to use

  1. Add Packages/RosettaUI/UIToolkit/Runtime/RosettaUIRootUIToolkit.prefab to the Hierarchy.
  2. Write code to generate an Element instance.
  3. Call RosettaUIRoot.Build(Element) to generate the actual UI (see ExampleSimple).

Examples are available in this repository.
We recommend downloading and checking it out.

Environment

Platform Support
Windows ✔
Mac Maybe (not tested)
Linux Maybe (not tested)
IL2CPP Not supported

️ Tips

Disable input when UI focused

During UI operations, input to the application is suppressed by replacing the keyboard, pointer, and mouse devices with dummies.

csharp
// false while RosettaUI focused
if ( Keyboard.current[Key.A].wasPressedThisFrame )
{
    // do something
}

[!WARNING] the Keyboard.current.onTextInput event will still be called.

For LegacyInputSystem, refer to RosettaUIRoot.IsFocused().

csharp
if ( !RosettaUIRoot.IsFocused() && Input.GetKeyDown(KeyCode.A) )
{
    // do something
}

Custom Undo/Redo

Users can register custom Undo/Redo actions.
For details, try running ExampleUndo.

Related Libraries

PrefsGUI - Accessors and GUIs for persistent preference values using a JSON file

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#debugdevelopmentmenuui

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言