Question by
jaguar1226 · May 27, 2019 at 04:13 PM ·
spriteobjectinvisible
Sprite gets invisible on play
Hey, I have a problem with a sprite (my game is in 2D): it shows in the scene view, in the game view and in the camera preview, but when I click on the play button it gets invisible... I have a code attached to it that only enables the gameObject while the mouse button is held down but this seems to work as it gets black in the hierarchy and the animation also seems to be playing as the sprite name in the inspector changes. I already tried moving the camera to -10 and made a sorting layer for it but it didn't change anything. Thank you for your help!!!
Comment
Your answer