Hi i have to atatch my ui to my player so that it works with mutliplayer easier and i can enable and disable parts of it easier but when using screen space camera with a plane distance of 1.2 it shakes alot any higher and it passes through walls so what can i do?
What kind of game is it? A 3rd person shooter?
I would use an empty object that smooth follows your player object.
Use one of these smooth follow scripts with lerp functions.
Then attach your canvas to that object.
If the UI doesn’t need to move and / or follow the player, don’t attach it to the player. Add a reference on your player script. So you will be able to enable/diable UI exactly the same way!