Sprites sometimes not rendering when displayed along Mesh2d/MeshMaterial2d. #17318
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
0.15.1
[Optional] Relevant system information
AdapterInfo { name: "Apple M3 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
What you did
Two entities:
Player
andEnemy
.Sprite
components (using TextureAtlases).Enemy
entity, addMesh2d
andMeshMaterial2d
with aCircle
andColorMaterial
, respectively.Player
'sSprite
no longer renders whenEnemy
'sMesh2d
is displayed on the screen.Enemy
is no longer visible, thePlayer
'sSprite
does begin to render. It disappears again if moving the camera back to the previous position, exactly as theEnemy
comes into frame.What went wrong
Expect to see Sprite, but don't.
The text was updated successfully, but these errors were encountered: