realgamessoftware / dear-imgui-unity

Unity package for Dear ImGui
MIT License
465 stars 115 forks source link

Documentation suggestion #6

Open bwheatley opened 4 years ago

bwheatley commented 4 years ago

When using the Universal Render Pipeline, add a Render Im Gui Feature render feature to the renderer asset. Assign it to the render feature field of the DearImGui component.

This line is confusing, I spent some time trying to add a "render feature" and then add that "render feature" to the imgui component. But in reality i needed to update the "renderer asset". I know that's what the docs say, but it was worded confusing. If i'm the only person who has the issue just close this, but being a little more clear might help folks trying to get started. <3 thanks for putting this project together, i appreciate the effort.

nothke commented 4 years ago

Hey, I don't understand this either.

There is no "renderer asset", I guess you mean the "pipeline asset"? And I don't see any "render feature" in the pipeline asset (at least in HDRP), or anywhere else. I also don't see the "render feature" field of the DearImGui component.

I'm extremely confused by that line in the docs.

zakkar commented 4 years ago

Same here, i tried to add all those things, but still confused on how to achieve the needed result. Can someone give us some insight on how to achieve that

millonf commented 4 years ago

I had the same issue and here is what you need to do (what the doc says but with pictures):

You have this issue because you created a Universal Render Pipeline (URP) Asset, and it's set it in your project settings: image

In this URP Asset, you have set a Forward Renderer Data: image

(Optional) If you didn't set a Forward Renderer Data, create your own: image (End of Optional)

In this Forward Renderer Data, you need to click "Add Renderer Feature" and select the ImGui Feature. image

Only then can you go to your GameObject/Prefab which contains the Dear Im Gui component, and there you'll be able to select the renderer feature:

image

There you go ! I hope this helps.

trapazza commented 4 years ago

Many thanks @millonf - Really appreciated and save me a headache or two.