基于代码的 UI 库,用于 Unity 的开发菜单
Code-based UI library for development menu for Unity
…Undo/Redo surpport (runtime only)
Inspector-like visual editor for Gradient and AnimationCurve at runtime
Inspector-compatible Copy and Paste
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.onTextInputIf 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.
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
RosettaUI recommends using Input System.
See Tips.
Install according to the official documentation.
https://docs.unity3d.com/Packages/[email protected]/manual/Installation.html
Packages/RosettaUI/UIToolkit/Runtime/RosettaUIRootUIToolkit.prefab to the Hierarchy.Element instance.RosettaUIRoot.Build(Element) to generate the actual UI (see ExampleSimple). Examples are available in this repository.
We recommend downloading and checking it out.
| Platform | Support |
|---|---|
| Windows | ✔ |
| Mac | Maybe (not tested) |
| Linux | Maybe (not tested) |
| IL2CPP | Not supported |
During UI operations, input to the application is suppressed by replacing the keyboard, pointer, and mouse devices with dummies.
// false while RosettaUI focused
if ( Keyboard.current[Key.A].wasPressedThisFrame )
{
// do something
}[!WARNING] the
Keyboard.current.onTextInputevent will still be called.
For LegacyInputSystem, refer to RosettaUIRoot.IsFocused().
if ( !RosettaUIRoot.IsFocused() && Input.GetKeyDown(KeyCode.A) )
{
// do something
}Users can register custom Undo/Redo actions.
For details, try running ExampleUndo.
PrefsGUI - Accessors and GUIs for persistent preference values using a JSON file
暂无开放 Issues,或尚未同步最近议题。