Alewinn
Topic Author
Posts: 2
Joined: 14 Feb 2012, 10:33

NoesisGUI and Unity Integration

14 Feb 2012, 16:44

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 ?
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: NoesisGUI and Unity Integration

14 Feb 2012, 17:13

Sorry but this first beta is only for PC :(
 
Alewinn
Topic Author
Posts: 2
Joined: 14 Feb 2012, 10:33

Re: NoesisGUI and Unity Integration

14 Feb 2012, 17:19

ok no problem ;)
 
valyard
Posts: 1
Joined: 16 Feb 2012, 20:44

Re: NoesisGUI and Unity Integration

17 Feb 2012, 11:09

Err... is there a tutorial how to use NoesisGUI with Unity?
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: NoesisGUI and Unity Integration

17 Feb 2012, 18:11

sorry this beta does not work yet on Unity... we are working on it
 
edgarhsanchez
Posts: 34
Joined: 21 May 2012, 18:19

Re: NoesisGUI and Unity Integration

11 Sep 2012, 14:06

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.
 
User avatar
jsantos
Site Admin
Posts: 4123
Joined: 20 Jan 2012, 17:18
Contact:

Re: NoesisGUI and Unity Integration

14 Sep 2012, 13:26

We are pleased to announce that NoesisGui v0.9.5 includes integration with Unity. There is a new tutorial with information.
 
dmrvar
Posts: 4
Joined: 08 Oct 2012, 16:02

Re: NoesisGUI and Unity Integration

09 Oct 2012, 12:19

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
 
User avatar
sfernandez
Site Admin
Posts: 3154
Joined: 22 Dec 2011, 19:20

Re: NoesisGUI and Unity Integration

15 Oct 2012, 17:34

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.
 
dmrvar
Posts: 4
Joined: 08 Oct 2012, 16:02

Re: NoesisGUI and Unity Integration

16 Oct 2012, 10:19

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

Who is online

Users browsing this forum: Killian and 2 guests