Search Issue Tracker
Fixed in 5.0.1
Votes
0
Found in [Package]
4.0.1
Issue ID
1292637
Regression
No
Debug Lines are not drawn inside the screen when using Pixel Perfect Camera Component
Reproduction steps:
1. Open user attached project
2. Open SCENEPATH scene
3. Press Play
4. Run to the left wall
5. Enable and disable the Pixel Perfect Component on the Camera
Expected result: Debug Lines are drawn around the character with Pixel Perfect Component enabled
Actual result: Debug Lines are only drawn outside the screen with an offset
Reproducible with: 3.0.1 (2020.1.17f1), 4.0.1 (2020.2.3f1, 2021.1.0b4, 2021.2.0a3)
Could not test with: 2018.4, 2019.4 (Compiler errors)
Comments (1)
-
marrobin
Feb 19, 2021 10:41
I raised the same issue with Freya Holmér, since her Unity Store Asset "Shapes" was displaying the same issue. This was her response:
~~~
this is likely an issue with the way the pixel perfect camera works - so it seems to be a Unity bug yeah :cit seems to:
• cache the buffer at ResolveColor
• then Shapes draws (Shapes Draw Command)
• then it reapplies the old ResolveColor state in Camera.ImageEffects.DrawDynamic, so anything that was drawn in between gets discarded.I imagine GL.Lines has the same issue because it happens between these steps too :(
Edit: Actually, this is a specific issue when called at the camera event BeforeImageEffects, if you instead use AfterForwardAlpha it seems to work :)
using( Draw.Command( cam, CameraEvent.AfterForwardAlpha ) ) {
// ...
}(this is still a Unity bug though, before image effects should absolutely work, but 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
- Tile Palette button with longer Palette name is misaligned and cut-off when Tile Palette Clipboard overlay is resized
- Tile Palette dropdown expands when Palette name is longer in Tile Palette window
- “Destroying assets is not permitted to avoid data loss” error thrown when creating a second Tile Palette Brush Pick Asset
- The “Copy to clipboard” button has no hover or click animations when hovering and clicking the “Copy to clipboard” button after selecting an issue from the “Code” tab of the Project Auditor window
- Saved Tile Palette Brush List items become malformed causing the list to become cut off when decreasing the Pick size with the slider
Resolution Note (fix version 5.0.1):
Fixed in: 2022.1.0a6
Resolution Note (fix version 5.0.1):
Fixed in: 2021.2.0b8
Resolution Note (fix version 5.0.1):
Fixed in: 2021.1.18f1