Hi Guys,I would like to share my little GUI editor for Unity.It is still in an early state,and it still has some work to do.To create a gui component,click the button and drag where you would like to create the component.
371023–12850–$ugui_builder_317.zip (1.58 MB)
Its pretty helpful im gonna start using it maybe to help desighn my game, thanks!
This is a very good start. Simple and outputs standard script, I like it. Now if someone could convert this into an Editor script that can be used in a window.
There is a small mistake in the code. Pressing the “Generate Code” a second time doesn’t clear the previous generated code entirely. You have to add
OtherCompents.Clear();
in function OnGUI() on the else branch in the main_GUI.js script:
function OnGUI()
{
if (timer_splash<timer_splashtime)
{
timer_splash+=Time.deltaTime;
GUI.DrawTexture(centreGUI(700,381),house_splash);
}
else
{
if (show_genwin)
{
GUI.Window(3,Rect((Screen.width/2)-(574/2),(Screen.height/2)-(410/2),574,410),OnWindowDraw5,“Your Code”);
}
winrect=GUI.Window(0,winrect,ToolBar,“ToolBar”);
winrect1=GUI.Window(1,winrect1,Properties,“Properties”);
if (GUI.Button(Rect(Screen.width-100,0,100,20),“Generate Code”))
{
OtherCompents.Clear();
…