Table of Contents
- Step Zero: Start a NEW project with URP
- Step One: Find all the Materials that need to be upgraded
- Step Two: Drag and Drop all the pink materials into PolygonR's "Convert To Pipeline" tool
- Step Three: Set your Render targets to LightweightRenderPipelineAsset
- Step Four: Get rid of that big HDRP warning
- Step Five: Run your game in Play Mode and Verify
This image to the right is the problem we are going to solve here.
Full disclaimer, this is NOT PolygonR's fault, as he built this asset back before the whole Scriptable Render Pipelines became a thing. Unity really should have made the transition for all materials of the old render pipeline to the the new URP and HDRP automagical, behind the scenes, and easily reversible, but they did not.
Thankfully, PolygonR (and many other asset developers) make tools to make this process a little less painful.
Step Zero: Start a NEW project with URP
This is actually harder to do because of Unity's flip flop on naming and overly complex use of terms that you don't really need to be familiar with to want to build a game.
Short version is that URP is the same as LWRP and if you are an indie or just getting started, it is what you want.
- URP is the "universal render pipeline" meant to target all platforms that Unity can compile to (including mobile) and is probably your best bet unless you are ABSOLUTELY certain you want to do some super high end graphics voodoo which would require the extra work involved with using the HDRP (high definition render pipeline)
- LWRP is the old name of URP
You might also hear about the Built In Renderer — that is the original 3d rendering engine and what was used previous to URP and HDRP being introduced. You can possibly go with that, but I don't recommend it because:
- there is no easy way to take any URP or HDRP assets and convert them back to built in renderer
- there are many other assets which do NOT support the built in renderer at all, so as your game grows, you won't be able to import them into your game
- it is a pain in the butt to convert from built in renderer to URP or HDRP later.
You might also hear the term SRP thrown around:
- SRP is the Scriptable Render Pipeline
- that is the "Parent" term for both URP/LWRP, and the HDRP
- It just means that you can "program" the rendering engine in Unity now (if you so choose), so you can do some really cool things literally per pixel of your game.
- But again, if you are just getting started, you probably don't need to be thinking about that because URP can do so much already, and you should be focused on making your game and not hacking the rendering pipeline.
Step One: Find all the Materials that need to be upgraded
You can do this relatively easily by going to your project view and and click in on the box which looks like a tiny square, triangle, and circle (directly to the right of the search box) and selecting "Materials" as the thing you want to view in your project.
All of the pink ones are the ones that need to be "upgraded" to work with URP.
Step Two: Drag and Drop all the pink materials into PolygonR's "Convert To Pipeline" tool
To make things easy, you can ctrl-click on any number of materials in the project "Materials" view from Step One above and then drag and drop them onto the TITLE of "Materials_to_Convert" (not onto the empty size field or below it, DIRECTLY onto the TEXT of "Materials_to_Convert") and the window will automagically update the size of the array and assign all the target elements to the assets you dropped onto it.
There are probably many more than 5 assets that need to be upgraded in your project, the above is just an example.
Finally, just click Convert and let it do the hard work.
This is what it should look like when you have successfully converted all the materials
Step Three: Set your Render targets to LightweightRenderPipelineAsset
Make sure that your project's graphics settings and quality "rendering" target are both pointing at the LightweightRenderPipelineAsset which comes with the Sci Fi Top Down Asset.
Check them by going to Edit, then Project Settings:
Then click on Graphics and hit the "selector circle" for your "Scriptable Render Pipeline Settings":
You can see that this "asset" comes from Assets/SciFi_Space_Soldier_Complete/ResourceFiles/ .... which is where the Sci Fi Top Down Prototype stores its assets by default.
Then the last step in the project settings is to set all of your quality settings (Fastest up to Fantastic) to use the same LightweightRenderPipelineAsset via the same process:
Step Four: Get rid of that big HDRP warning
This is the simplest step — if you've already closed that window, open it back up by going to Window, Render Pipeline, and then HD Render Pipeline Wizard.
Then scroll down to the very bottom and uncheck "Show on Start":
Step Five: Run your game in Play Mode and Verify
I recommend starting from the 0_DemoScene_MainMenu as it does the full game loop.
You should notice within the first two or three screens if everything is running as expected and textures are all rendering properly.
This is what the opening scene should look like:
Feel free to @ mention me (BetaMark#5340) in the PolygonR discord if you are following this list and something doesn't work as expected.
I hope that helps, good luck, and have fun!