Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0b8
Issue ID
1005039
Regression
No
Sprite masks do not mask in RenderTextures
How to reproduce:
1. Download attached project file and open scene 'scene'
2. Select Gameobject 'Main Camera (1)'
3. Make sure the scene view is docked next to the game view to compare.
4. Enter Play mode
Actual result: Camera preview in the scene view, the shine wraps over the object perfectly. In the game view, which shows a RenderTexture with a view of the main camera, the shine does not wrap
Reproduced with: 2017.2.2f1, 2017.3.1p2, 2018.1.0b9, 2018.2.0a1
-----------------------------
By design: The RenderTexture is created using 16 as depth. Only a depth of 24 will enable stencil features like SpriteMask (https://docs.unity3d.com/ScriptReference/RenderTexture-ctor.html).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Only the left screen is rendering when using Render Graph Fullscreen Blit in Meta Quest 2
- Context menu with the "Revert" option doesn't appear when pressing the right mouse button on a "Vector2" or "Vector3" property in the Inspector of a custom shader
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
Add comment