# Rust CUI Editor: Design Plugin UI Visually and Export C#

> Free Rust CUI editor: draw panels, text, buttons and images for your plugin UI, then export ready CuiElementContainer C# code or JSON. No sign-up.

URL: https://badgyver.com/tools/rust-cui-editor/

Draw your plugin's interface on a Rust screen: **panels, text, buttons, images and input fields**. Drag to move, pull the corner to resize, set colours and anchors, and export the C# code for Oxide and Carbon or the raw JSON. Your design is kept in this browser.

Loading the editor…

![Rust CUI Editor 1](https://badgyver.com/wp-content/plugins/badgyver/assets/tools/items/sign.wooden.medium.webp)

### Anchors

Rust places every element with two corners, AnchorMin (bottom left) and AnchorMax (top right), as fractions of its parent from 0 to 1, so the design scales with any screen.

![Rust CUI Editor 2](https://badgyver.com/wp-content/plugins/badgyver/assets/tools/items/blueprintbase.webp)

### Offsets and colours

Offsets add fixed pixels on top of the anchors, which keeps a button the same size on every resolution. Colours are four numbers from 0 to 1: red, green, blue and opacity.

### Questions

What is CUI in Rust?CUI is the interface system Rust gives plugins. A plugin sends the client a list of elements (panels, text, buttons, images and input fields) and the game draws them on the player's screen.

Does the exported code work on Oxide and Carbon?Yes. The C# uses the CuiHelper and CuiElementContainer classes that both frameworks provide, so the same code runs on either.

How do I let players click a button?The window needs the cursor turned on (CursorEnabled on a panel), and each button gets the console command it runs when clicked. Both are set in the editor and written into the exported code.

How do I close the interface?Call CuiHelper.DestroyUi with the player and the name of the top element. Removing the parent removes everything inside it.

Is my design saved?It is kept in this browser, so you can close the page and carry on later. Export the JSON to keep a copy or move it to another computer.

### More free Rust tools

[Items & Prefabs](https://badgyver.com/tools/rust-items/)[Commands & Convars](https://badgyver.com/tools/rust-server-commands/)[server.cfg Generator](https://badgyver.com/tools/rust-server-cfg-generator/)[Crafting Calculator](https://badgyver.com/tools/rust-crafting-calculator/)[Config Editor](https://badgyver.com/tools/rust-plugin-config-editor/)[Oxide & Carbon Hooks](https://badgyver.com/tools/rust-plugin-hooks/)[Twitch Drops](https://badgyver.com/tools/rust-twitch-drops/)[Compatibility Check](https://badgyver.com/tools/rust-plugin-compatibility/)

Running a server? Our [custom Rust maps](https://badgyver.com/maps/) and [Rust plugins](https://badgyver.com/plugins/) are checked on every update.
