NoesisGUI and Unity UI Problem
Hello, I have installed NoesisGUI for Unity and I am trying to go through the minimap tutorial on your channel. All seems well but I have run into a weird issue. I have my minimap situated at the top right of my screen and the view is attached to the main camera but everytime I move, the UI shakes and it clips. Below I have provided some images of the problem.
Images:
https://imgur.com/a/RX2pa2k
Edit: I think I have found the issue. The new version of the FPS asset I am using seems to be using Post Processing with the Universal Render Pipeline, so I think camera stacking may be needed. However, after following the guide in the Unity section, I still wasn't able to get it to stop shaking. The minimap UI also disappears when you look up. I have included my version of the project, if that helps.
https://drive.google.com/drive/folders/ ... sp=sharing
The Scene I am working on is "MainMenu UI Update"
Thanks
Images:
https://imgur.com/a/RX2pa2k
Edit: I think I have found the issue. The new version of the FPS asset I am using seems to be using Post Processing with the Universal Render Pipeline, so I think camera stacking may be needed. However, after following the guide in the Unity section, I still wasn't able to get it to stop shaking. The minimap UI also disappears when you look up. I have included my version of the project, if that helps.
https://drive.google.com/drive/folders/ ... sp=sharing
The Scene I am working on is "MainMenu UI Update"
Thanks
Re: NoesisGUI and Unity UI Problem
Are you able to reproduce this without using extra packages?
In the screenshots you attached, it seems the 3D render is also being clipped.
In the screenshots you attached, it seems the 3D render is also being clipped.
Re: NoesisGUI and Unity UI Problem
I'm not sure, I just started a blank Unity project and installed both NoesisGUI and the FPS package, so I could follow along with the tutorial. As far as I'm aware I'm not using extra packages, just what the FPS asset comes with. I have edited my first post to include a download link to the project, so you can see how I've set up the UI camera (encase the issue is to do with the URP and post processing). I am also not sure how to solve the clipping issue?
Re: NoesisGUI and Unity UI Problem
I have managed to fix my issue, so you can mark this as solved. The issue I was having in my camera stack was due to the order of the UI camera. I do have a few questions though which may be an issue with the way my Noesis has installed. The first problem is when opening the solution in Blend, instead of opening in Blend it opens in Visual Studio and from there I have to choose "Design in Blend", rather than just having Blend load up. The second issue that I seem to be having that the video does not have is the "hot reloading" XAML feature. I do not see my XAML view in the editor or game view. In order to see the results, I need to play the game.
Do you have any idea why the hot reloading/preview is not working or updating without entering play mode?
Do you have any idea why the hot reloading/preview is not working or updating without entering play mode?
Re: NoesisGUI and Unity UI Problem
Is this the solution automatically generated by our plugin or the solutions of the examples included in the package? I want to recheck everything. I am testing right now on my machine and it is correctly opening Blend.The first problem is when opening the solution in Blend, instead of opening in Blend it opens in Visual Studio and from there I have to choose "Design in Blend", rather than just having Blend load up.
Yes, that's correct. Noesis Views only renders when playing the game. And only when playing you can use Hot-Reload.The second issue that I seem to be having that the video does not have is the "hot reloading" XAML feature. I do not see my XAML view in the editor or game view. In order to see the results, I need to play the game.
Re: NoesisGUI and Unity UI Problem
I have got everything to work properly now,it took me a while to figure out but the problem was on my end and Visual Studio. I ended up removing it and re-installing the 2019 version as opposed to the current 2020 version (This way I have access to the Noesis extension). It's good to know that the hot reloading takes place while the game is running.
One thing I would like to know with the mini map tutorial (that's currently what I'm following) is when I maximise on play, there seems to be a gap in the top-right. For some reason the UIdoesn't seem to scale with resolution properly, is that down to not using specific controls (for instance viewboxes)? When I play the game on windows mode, I need to increase my window size in order to see my minimap/view rather than the minimap just resizing based on resolution/aspect ratio.
I would also like to know if the code for the minimap tutorial is available? The code is shown for the ViewModel and the other script but not in full and I couldn't find that tutorial/example on the NoesisGUI GitHub or in the description.
One thing I would like to know with the mini map tutorial (that's currently what I'm following) is when I maximise on play, there seems to be a gap in the top-right. For some reason the UIdoesn't seem to scale with resolution properly, is that down to not using specific controls (for instance viewboxes)? When I play the game on windows mode, I need to increase my window size in order to see my minimap/view rather than the minimap just resizing based on resolution/aspect ratio.
I would also like to know if the code for the minimap tutorial is available? The code is shown for the ViewModel and the other script but not in full and I couldn't find that tutorial/example on the NoesisGUI GitHub or in the description.
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: NoesisGUI and Unity UI Problem
As I mentioned in your other post, this looks like you have set a fixed Width/Height in the root of your XAML, in the UserControl.when I maximise on play, there seems to be a gap in the top-right. For some reason the UI doesn't seem to scale with resolution properly, is that down to not using specific controls (for instance viewboxes)? When I play the game on windows mode, I need to increase my window size in order to see my minimap/view rather than the minimap just resizing based on resolution/aspect ratio.
We'll prepare the sources and upload them to the Showcase section later today.I would also like to know if the code for the minimap tutorial is available? The code is shown for the ViewModel and the other script but not in full and I couldn't find that tutorial/example on the NoesisGUI GitHub or in the description.
Re: NoesisGUI and Unity UI Problem
Thanks a lot for your help. Much appreciated
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: NoesisGUI and Unity UI Problem
Hi, we've uploaded the MiniMap project with sources, you can find it in our Showcase section: viewtopic.php?t=2772
Who is online
Users browsing this forum: No registered users and 75 guests