- Home /
The problem was with tiff lasers and meshes... after switching to sprites the problem did not appear again!
2D Android Game Projectiles becoming invisible
Hi! I have been working on a 2D shooter game for a while and everything was going fine, but then i changed my game to scale with screen size and i started to have the following problem: in unity everything is working as expected but when i switch to android my projectiles are starting to go crazy.The first projectile i shoot i can see travel a little part of the screen then it dissapears and every other particle after that is invisibile.The projectile is still there as i can damage the enemy but i cannot see the projectiles.
My camera is set to orthographic projection and the canvas is set as follows: - canvas render mode screen space - camera with pixel perfect - ui scale mode - scale with screen size and screen match mode - match width or height
Please help me! Thank you
I noticed that sometimes if i move my player object to the corner of the screen it does show my lasers ... i keep trying but no fix as of yet...
so the issue has nothing to do with the camera because changing it back did not solve the issue... the enemy projectiles are particles and there is no issue with them.. but the player projectile is a mesh and something appears to be wrong...i have no idea why i have this issue all of a sudden
Is the projectile changing layers when it gets converted to android somehow? $$anonymous$$aybe try messing with the gameObject.layer function, forcefully put it higher up, and check if you are able to see it then.
i tryed doing that but it is the same... i can see the laser if i stay at the top right corner but other then that it is like something is blocking the lasers like there is something there making them invisible... but there is nothing that would influence it like that
Follow this Question
Related Questions
How to destroy a projectile when it leaves any side of the camera view on a 2D game? 1 Answer
How to prevent image from rendering to screen but seen by camera 0 Answers
Canvas interaction on render texture to message PhysicsRaycaster 1 Answer
Trying to make a Diablo like minimap, but I am having problems. Bug? 0 Answers
Is there any way to hide only part of an object from the camera? (unity free) 2 Answers