Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meragon/unity-winforms
A Windows Forms port for Unity3d
https://github.com/meragon/unity-winforms
gui unity unity-winforms windows-forms
Last synced: 1 day ago
JSON representation
A Windows Forms port for Unity3d
- Host: GitHub
- URL: https://github.com/meragon/unity-winforms
- Owner: Meragon
- License: mit
- Created: 2015-10-26T06:52:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T15:57:56.000Z (almost 3 years ago)
- Last Synced: 2024-12-22T04:09:15.796Z (1 day ago)
- Topics: gui, unity, unity-winforms, windows-forms
- Language: C#
- Homepage:
- Size: 1.25 MB
- Stars: 522
- Watchers: 41
- Forks: 84
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Important notice: project is no longer supported. I moved this whole thing from Unity to raylib.
# Unity Windows Forms
A Windows Forms port (including System.Drawing) to Unity3d, built on top of 'UnityEngine.GUI' class.
### Supported Controls
- Button;
- CheckBox;
- ComboBox;
- DateTimePicker;
- FontDialog;
- Form;
- GroupBox;
- HScrollBar;
- Label;
- LinkLabel;
- ListBox;
- MenuStrip;
- MonthCalendar;
- NumericUpDown
- OpenFileDialog;
- Panel;
- PictureBox;
- ProgressBar;
- RadioButton;
- SaveFileDialog;
- SplitContainer;
- TabControl;
- TextBox;
- Timer;
- ToolStrip;
- ToolTip;
- TrackBar;
- TreeView;
- VScrollBar;Additional custom controls:
- BitmapLabel;
- ColorPicker (replacement for ColorDialog);
- Highchart (replacement for Chart);
- RepeatButton;
- TableView (replacement for DataGridView);### Usage
1. Attach **UnityWinForms** script to **GameObject**;
2. Add **Arial** font to resources;
3. Add other fonts and images;
4. Create **Form** control in your **MonoBehaviour** script;
```sh
using UnityEngine;using System.Windows.Forms;
public class GameGuiController : MonoBehaviour
{
void Start()
{
var form = new Form();
form.Show();
// Or show a message.
//// MessageBox.Show("Hello World.");
}
}
```### Screenshots
![scr1](https://i.imgur.com/z7ol9jq.png)
![scr1](https://i.imgur.com/oifeDMo.png)### From other projects using Unity-WinForms
![scr1](https://i.imgur.com/YJ3Y5BD.png)
![scr1](http://i.imgur.com/nZUFZCe.png)