Search Issue Tracker
By Design
Votes
0
Found in
2022.2.0b1
Issue ID
UUM-7963
Regression
No
Renderer Feature does not work in Edit Mode for materials created in "OnCameraSetup" using "CoreUtils.CreateEngineMaterial"
How to reproduce:
1. Open project “Bug.zip”
2. Open “Rotoscope” Scene (Assets > Files > Rotoscope)
3. In the Project window select “ForwardRenderer.asset” (Assets > Settings > ForwardRendering)
4. Press the “Add Renderer Feature” button and select “Rotoscope Feature”
5. Observe the Scene view
Expected result: Scene view is changed
Actual result: Scene view is not changed
Reproducible with: 10.9.0 (2020.3.36f1), 12.1.7 (2021.3.6f1), 13.1.8 (2022.1.8f1), 14.0.3 (2022.2.0a19), 15.0.0 (2023.1.0a2)
Reproduced on: macOS 12.4 (Intel)
Note: Renderer Feature does execute in Scene view if the same material is created from the Render Feature's create method
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
- UI Toolkit Debugger Pick Element does not react to the Burst Inspector window when hovering over the Burst Inspector window
- Some buttons in the Burst Inspector window crop the button text from the left side making it unreadable when the window is smaller, and the window has to be almost fullscreen for the full button text to show
- Text in the Burst Inspector Left side panel overlaps/goes out of bounds when scrolling
- Multiple "Incompatible keyword states" or “Keyword state size mismatch (60 vs 59 keywords)“ Errors when opening the project
- Non-editable Repeat - X and Repeat - Y settings appear when UI Builder Canvas Background is set to image
Resolution Note:
See documentation for ExecuteCommandBuffer: https://docs.unity3d.com/ScriptReference/Rendering.ScriptableRenderContext.ExecuteCommandBuffer.html
The command buffers are executed on ScriptableRenderContext.Submit which is after the OnCameraCleanup. This causes the material to be destroyed before being used. If you don't remove the material it will render as expected.