4.2 vs 4.3 Performance and 2D URP Support

I have a render feature from another library I am using (though same issue even when I remove that). the gimzos are enabled (they still show up when I am in play mode) and I honestly can’t find where to get the demo since they are no longer including in the main package.

You can find the examples by going to the package manager and importing them. They are listed at the bottom of the package view.

The RVO 2d examplei s worse as it does not show the grid in either edit or play mode

Do you think you could check if this happens in a new empty project for you?

Same issue on a clean default 2D URP project, no grid gizmos when in edit or play mode on the RVO 2d example.

Would it be possible for you to share that small project with me? I think something is different about our setups.

I can zip up the default project to 8MB but how do I send it to you?

Dropbox or any other file sharing service?

Let me know when you downloaded it so I can delete it:

https://drive.google.com/file/d/1Zq1awHLjkisW6MljIRqhnyGNrfjo73qE/view?usp=sharing

I downloaded it and opened the 2D RVO example scene. The gizmos seem to work perfectly fine for me:

What operating system and graphics api are you using?
Can you try to open the aline_outline shader in the Unity inspector and see if there are any warnings logged?

Do you know if the gizmos work if you are not using the 2D URP?

Note that graphs only show up if you have scanned them. So make sure you have selected the A* component and clicked Scan (or ctrl+alt+s).

It does not work for me:

I am on windows 10:

windows

the aline outline shadow look like this with no errors / warning when I select it:

I know I have to scan it and it works fine with playing on not using the 2D renderer.

I have no idea hat you mean by graphics api (DirectX vs OpenGL?) but I am using whatever the default it, the project I sent you I made 0 changes outside of installing the astar pacakge.

Are sure you are using the same Unity version?

@aron_granberg, @ryanzec, which URP renderer asset are you both using? Your camera will be configured to use a renderer under Camera → Rendering → Renderer. It’s possible that the two of you are using different URP renders (Forward Renderer vs. 2D Renderer). My guess is that the graph gizmos are working with the Forward Renderer, but not with the 2D Renderer (I mentioned this in a previous post).

I might be wrong but it working with the Forward Renderer it useless for my case as when working with 2D and the URP, from my understanding, you have to use the 2D Render Data (as the Forward Renderer is for 3D).

So really weird thing I am seeing now. If I load Unity and try to rendering the grid graph overlay, it does not work. Now however if I switch from the game view (not playing it or anything) and then back to the scene view, the overlay shows up. it will update and everything, not sure why.

Only different is that I re-installed windows (still windows 10) so not sure why that would have done it (though I re-installed because I was notice other issues and I like to do it every so often).

Yeah, I’m not suggesting switching to the Forward Renderer, rather tracking down the discrepancy between the behavior you are reporting and the behavior @aron_granberg is observing; identifying the configured URP renderer of the camera the two of you are using is a pretty significant piece of the puzzle.

Oh, well unless he switched the renderer from the example project I sent him, we should be using the same one.

Yeah. I didn’t switch anything.

I’m using linux, so there might be some rendering differences compared to windows. I’ll do some tests.

I upgraded from 4.2.15 to 4.3.47 to test this out, and graph visualization now works for me (older versions of 4.3 did not work). I’m using 2021.2.9f1 and URP 12.1.4. I tested out both the 2D Renderer and Forward Renderer, and both were able to display grid graphs in the scene view, and also in the game view.

Unrelated to graph visualization, but here’s a note about upgrading to 4.3.47 from older versions: There are now a number of asmdef files, so if your project is using asmdefs then you’ll not only need to add the core Astar asmdef (AstarPathfindingProject.asmdef), but possibly a couple others. I needed to add Drawing/ALINE.asmdef, and PackageTools/PackageTools.asmdef.

1 Like

I tested Unity 2021.2.9f1 / URP 12.1.4 / A* 4.3.47 as still getting the issue of having to at least switch to the game view first before the grid shows up in the scene view. It is at least now a minor annoyance since it is no longer that the grid only shows while in play mode so it is workable (though it would be nice to figure out why I am seeing this issue).

Actually it is still a little worse than I thought as the grid stops rendering whenever it re-compiles (which is often) and I have to switch back and forth between the game and scene view each time.