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.
Comments (1)
-
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
- Crash on SortByExecutionOrder when interrupting the .androidpack import process
- ShaderGraph tab header changes the icon to the VFX Graph icon when ShaderGraph and VFX Graph with the same name are both opened
- The Build Profiles window has usability issues when the panel takes up less than 30% of the screen width
- Inconsistent ShaderGraph RGBA channels compared to the Inspector when "Alpha Is Transparency" is used
- Crash on "The GUID inside 'Assets/asset.png.meta' cannot be extracted by the YAML Parser." when opening the project
Resolution Note:
You need to use GraphicsSettings.currentPipeline