Skip to content

ChongwuXu/Unity-WinForms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Windows Forms

This is WinForms wrapper (including System.Drawing). Here you can create base controls and make your own custom controls. The reason why I made it? Because now I can quickly create GUI through the code. But, yeah, right now there is a poor implementation of interaction with the editor.

Controls atm

  • 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;

Other 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;
public class GameGuiController : MonoBehaviour
{
	void Start()
	{
		var form = new Form();
		form.Show();
		
		// Or show a message.
		// 		MessageBox.Show("Hello World.");
	}
}

Screenshots

scr1 scr1

From other projects using Unity-WinForms

scr1 scr1

About

Windows Forms wrapper for Unity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.7%
  • Other 0.3%