Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Meragon/Unity-WinForms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

220 Commits

Repository files navigation

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

From other projects using Unity-WinForms

scr1 scr1

AltStyle によって変換されたページ (->オリジナル) /