Search Issue Tracker
By Design
Votes
0
Found in [Package]
7.1.1
Issue ID
1177603
Regression
No
RenderPipelineManager.currentPipeline returns null when asset is assigned
1) Open a new project
2) Create an HDRP asset and assign it to the pipeline(Edit->Project Settings-> Graphics)
3) Add attached script to any gameobject
4) Enter playmode
Editor will show a null reference error. Both pipe and hdrp variables are null.
-
arkano22
Dec 18, 2019 07:16
Would anyone care to elaborate why? The docs for RenderPipelineManager.currentPipeline say:
"Returns the instance of the currently used Render Pipeline."
Good, except it doesn't?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
Resolution Note:
You need to use GraphicsSettings.currentPipeline