Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Failing to load the URP Pipeline Asset #99

Closed trojanfoe closed 1 year ago

trojanfoe commented 1 year ago

Describe the bug When pressing Configure for URP in the Readme tool, I am getting the error Couldn't load the URP pipeline asset.

To Reproduce Follow the quick start video from YouTube. I deselected all of Water and all of Demo as I do not require them.

Expected behavior It configures the project for URP without issue.

Unity details: Flat Kit version 3.2.0 Unity 2022.2.1f1 Dev platform: WindowsEditor Target platform: StandaloneWindows64 URP installed: True, version 14.0.4 Render pipeline: UniversalPipeline Color space: Linear Quality config: URP-HighFidelity Graphics config: URP-HighFidelity

Build platform: Windows

Additional context The path is empty in ReadmeEditor.cs:308. I would recommend changing line 309 to use string.IsNullOrEmpty() to catch this, instead of checking for null alone:

if (string.IsNullOrEmpty(path)) {
trojanfoe commented 1 year ago

Deleting the imported directories and re-importing everything still shows the same error.

image
dustyroom-studio commented 1 year ago

Hi,

Thank you for such a detailed report.

The [Readme] tool's 'Configure Project for URP' button makes it quick for the Demo scenes to be set up correctly out of the box — using a prepared URP Pipeline Asset file and its Renderer + Renderer Features per each scene.

In a standard URP project, you have a URP Pipeline Asset file that lists all the Renderers (fka Forward Renderers) for the entire project. We used to have such a setup in Flat Kit as well up until one of the latest updates. But such a workflow is too cumbersome. Recently we added a per-scene URP Pipeline Asset loader script on camera components, which lets you have separate independent URP settings for each scene within a project. This makes it very easy and fast to duplicate scenes, do quick A/B comparison etc. Here's how it looks:

flat-kit-auto-load-pipeline-asset-component

The unique URP settings for each scene are located in the respective scene's folder:

flat-kit-portable-urp-settings-vase-scene

The more common 'Example' settings for Flat Kit Demo scenes are here:

flat-kit-example-urp-settings-location

If you are not planning to use the Demo scenes, you can skip this installation step. You'll need to use your own URP Pipeline Asset file and its Renderer(s) in your custom scene then.

Thank you very much for bringing this to our attention! We'll make fixes to the [Readme] tool (like a note that you don't use Demos scenes) and update the doc to explain this workflow as soon as possible.

Please, let us know if you still have issues.

trojanfoe commented 1 year ago

Thank you very much for your quick and thorough response. I will respond more fully tomorrow when I have a chance to look at the things you suggest.

trojanfoe commented 1 year ago

Had a quick look now and everyone you have said makes perfect sense. The new shaders are working lovely and thank you for your excellent support! Have a great new year!

image