Page 1 of 1

[Unity] NoesisGUIPanel has to be in MainCamera

Posted: 27 Dec 2015, 10:34
by b1qb0ss
why i should add the NoesisGUIPanel in the maincamera? for example i have alot of xaml files and i want them to be placed in separate objects in the scene not only the maincamera

Re: [Unity] NoesisGUIPanel has to be in MainCamera

Posted: 27 Dec 2015, 11:39
by ai_enabled
You could place NoesisGUIPanel at any camera in the game. Just set properly order of rendering for it.
But most games uses NoesisGUIPanel in the main camera or in a single "overlay" camera which is used only for UI.

Modular UI doesn't mean you should break it into multiple cameras - you could use only single camera for it and dynamically add/remove objects from it's NoesisGUIPanel root object (usually Noesis.Grid used as root).
This way you also have some benefits like shared Logical/Visual Tree (so an UI element could access other elements in this tree) and performance/memory efficiency also: each NoesisGUIPanel instance has some overhead (offscreen buffer, etc).

Re: [Unity] NoesisGUIPanel has to be in MainCamera

Posted: 27 Dec 2015, 12:02
by b1qb0ss
You could place NoesisGUIPanel at any camera in the game. Just set properly order of rendering for it.
But most games uses NoesisGUIPanel in the main camera or in a single "overlay" camera which is used only for UI.

Modular UI doesn't mean you should break it into multiple cameras - you could use only single camera for it and dynamically add/remove objects from it's NoesisGUIPanel root object (usually Noesis.Grid used as root).
This way you also have some benefits like shared Logical/Visual Tree (so an UI element could access other elements in this tree) and performance/memory efficiency also: each NoesisGUIPanel instance has some overhead (offscreen buffer, etc).
sorry if i'm being stupid i'm new to NoesisGUI is there any way to change the current XAML of NoesisGUI?

Re: [Unity] NoesisGUIPanel has to be in MainCamera

Posted: 27 Dec 2015, 13:02
by jsantos
The recommended approach is described here:

Best approach to switch/navigate between views

Basically, you have a root container in the NoesisGUI panel and dynamically add/remove XAMLs.

I also recommend you having a look at the MenuDemo sample

Re: [Unity] NoesisGUIPanel has to be in MainCamera

Posted: 27 Dec 2015, 13:11
by b1qb0ss
The recommended approach is described here:

Best approach to switch/navigate between views

Basically, you have a root container in the NoesisGUI panel and dynamically add/remove XAMLs.

I also recommend you having a look at the MenuDemo sample
great thanks i'm new to Xaml too :D