NoesisGUI and Unity Integration
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 ?
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
Sorry but this first beta is only for PC
Re: NoesisGUI and Unity Integration
Err... is there a tutorial how to use NoesisGUI with Unity?
Re: NoesisGUI and Unity Integration
sorry this beta does not work yet on Unity... we are working on it
- edgarhsanchez
- Posts: 34
- Joined:
Re: NoesisGUI and Unity Integration
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
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
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
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
-
sfernandez
Site Admin
- Posts: 3154
- Joined:
Re: NoesisGUI and Unity Integration
Hi dmrvar, sorry for the late answer.
The correct way to dynamically add controls to a Panel is via its Children property.
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.
The correct way to dynamically add controls to a Panel is via its Children property.
Code: Select all
Button newButton = new Button();
TextBlock tb = new TextBlock("Custom button");
newButton.SetContent(tb);
Grid grid = noesisGUI.GetRoot<Grid>();
grid.GetChildren().Add(newButton);
Re: NoesisGUI and Unity Integration
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.
Yes the problem (I think) is that VisualCollection inherits from IDisposable instead of Collection (in Unity). C++ headers seems ok.
Code: Select all
//wrong
public class VisualCollection : IDisposable
//correct
public class VisualCollection : Collection
Who is online
Users browsing this forum: Killian and 2 guests