Page 1 of 2
NoesisGUI and Unity Integration
Posted: 14 Feb 2012, 16:44
by Alewinn
Hi,
Thanks a lot for this great set of tools !
Unfortunately i was'nt able to use Noesis within Unity ; i tryed to drop the Noesis.dll file (in fact the whole /bin/data directory) of NoesisGUI inside the unity project/Assets folder but the dll didn't seems to be .COM compliant - visibly not enough for unity to use it.
Is there a special setup for using NoesisGUI inside Unity ?
Re: NoesisGUI and Unity Integration
Posted: 14 Feb 2012, 17:13
by jsantos
Sorry but this first beta is only for PC

Re: NoesisGUI and Unity Integration
Posted: 14 Feb 2012, 17:19
by Alewinn
ok no problem

Re: NoesisGUI and Unity Integration
Posted: 17 Feb 2012, 11:09
by valyard
Err... is there a tutorial how to use NoesisGUI with Unity?
Re: NoesisGUI and Unity Integration
Posted: 17 Feb 2012, 18:11
by jsantos
sorry this beta does not work yet on Unity... we are working on it
Re: NoesisGUI and Unity Integration
Posted: 11 Sep 2012, 14:06
by edgarhsanchez
Did anyone notice how much demand for a GUI state machine and WPF life behavior there was from the Unite conference a few weeks ago? There's so much demand for it now that Unity3D has decided to make it happen in Unity3D but it won't be XAML based so it probably won't do so well. NoesisGUI has great advantage by choosing XAML.
Re: NoesisGUI and Unity Integration
Posted: 14 Sep 2012, 13:26
by jsantos
We are pleased to announce that NoesisGui v0.9.5 includes integration with Unity. There is a new tutorial with information.
Re: NoesisGUI and Unity Integration
Posted: 09 Oct 2012, 12:19
by dmrvar
What is the best way to dynamically add Button with Text to the root Grid.
For example:
// Access to the NoesisGUI component
NoesisGUI noesisGUI = GetComponent<NoesisGUI>();
// Obtain the root of the loaded UI resource, in this case it is a Grid element
Grid grid = noesisGUI.GetRoot<Grid>();
// Create new Button with text
Button newButton = new Button();
TextBlock tb = new TextBlock("Custom button");
newButton.SetContent(tb);
//Here is the question
grid.GetChildren().???? (best way should be grid.GetChildren().Add(newButton))
or
newButton.SetParent
Re: NoesisGUI and Unity Integration
Posted: 15 Oct 2012, 17:34
by sfernandez
Hi dmrvar, sorry for the late answer.
The correct way to dynamically add controls to a Panel is via its Children property.
Button newButton = new Button();
TextBlock tb = new TextBlock("Custom button");
newButton.SetContent(tb);
Grid grid = noesisGUI.GetRoot<Grid>();
grid.GetChildren().Add(newButton);
Unfortunately we discovered some bugs in this path, so you will be unable to do it right now. We will fix it (as long as other things) for the next version, planned for the end of the week.
Re: NoesisGUI and Unity Integration
Posted: 16 Oct 2012, 10:19
by dmrvar
Thank you for the answer.
Yes the problem (I think) is that VisualCollection inherits from IDisposable instead of Collection (in Unity). C++ headers seems ok.
//wrong
public class VisualCollection : IDisposable
//correct
public class VisualCollection : Collection