If you can't find the option for camera stacking, change the "Clear Flags" option on the weapon camera to "Depth Only" and then change the "Depth" value to 1. At least, that's what worked for me :)
This is why I love your byte-size videos. In this 5 minutes I learned about camera stacking, using the layer mask for rendering and culling, and how to solve the specific problem. Time well spent.
@@MMKnight_1 i tried to change to urp materials but the tree is still pink, i asked on a 10k users discord server and on reddit in the unity subreddit: no solution
This is all fine and good until you want shadows on your gun, in which case the overlay camera will just render your weapon as if you are outside forever
Thanks my G, i watched 3 tutorials and everytime when I did what they said my Weapon dissappeared when I started the game, but you made some other changes and now everything works, thanks my guy!
the only way to do it now is to just make the weapon a 2d image and put it as UI image overlaying it like you would with crosshairs. and if you want animations with it, well youre gonna have to use sprite animation or some shit.
Ur a fucking life saver by teaching me how to make cameras not render certain things cuz I can not begin to explain the lack of tutorials on this simple common issue and u fixed it so quickly and easily In a great explanation. THANK YOUUUU!
If you cant see the render type in your camera settings, just install the universal render pipeline. 1: Import it from the package manager. 2: Right click in your project tab, select "Rendering", universal render pipeline and then press pipeline asset. (press after you have clicked on the pipeline asset). 3: Go in to the Edit tab/project settings/graphics, where it says none on the render pipeline press the circle and select the universal render pipeline. 4: Edit tab/Render Pipeline/Universal render pipeline and press upgrade project materials to universalRP materials. 5: Done!
when I was watching this I noticed I didnt have any of the camera settings so I had to learn how to use the URP first but I got there and now my weapon doesnt clip, thanks.
good sir you have the exact video I was looking for. Do you mid if I throw a few problems your way in discord. I am trying to make an aiming system with procedural guns that are generated during run-time. the problem I have is that the guns will have scopes and iron sights which means I need a system that can adjust for both.
Well that sucks... The way to do it in the standard pipeline is to have your weapon camera rendering only a weapon layer and then set the weapon camera render mode to "depth only" to occlude any sky box or other geometry. That might still be a viable solution for URP/HDRP
@@comp3interactive well I’ve tried that and multiple methods but to no avail, would be appreciated if you could do an updated video about this, though. But if you dont want to then thats alright.
Yeah I'm curious as to how it'd be done outside of the SRP now tbh, I don't often use URP/HDRP myself so I'm not entirely clued up on some of the nuances
cant find Render Type
for some reason the option to change render isnt showing up...... does anyone have a fix?
If you can't find the option for camera stacking, change the "Clear Flags" option on the weapon camera to "Depth Only" and then change the "Depth" value to 1. At least, that's what worked for me :)
Thanks a lot for the help bro, your comment was very useful, hugs from Brazil
Thanks Bro from Philippines
YOU ARE A LEGEND!!!
YOU ARE A LIFE SAVER
still doesnt show up
wtf i dont see (Render Type) in camera inspector??
This is why I love your byte-size videos. In this 5 minutes I learned about camera stacking, using the layer mask for rendering and culling, and how to solve the specific problem. Time well spent.
I aim to please, I hate watching long, drawn out tutorials myself. There's no point, if you can get the content across in 5-10 minutes then do it!
@@comp3interactive agreed
two years later and im still laughing at that computer joke
byte-sized
still dying
I don't see the Camera Render Type setting...
change the "Clear Flags" option on the weapon camera to "Depth Only" and then change the "Depth" value to 1
@@hiamtwistee Yes, that works, thank you
At which camera? Main or weapon?@@trifieldseven
@@QuaninVN weapon
please do unity hdrp cus this doesnt work in hrdp
I am using Unity 2020, and I can't change the render type. Also the camera stacking option is not there.
I have the same problem
Same here
@@MMKnight_1 you need to update your project to urp, but you will get a bunch of other problems such as: tree editor is only showing pink trees
@@okay1296 Thats why you change to urp materials(Step4)
@@MMKnight_1 i tried to change to urp materials but the tree is still pink, i asked on a 10k users discord server and on reddit in the unity subreddit: no solution
Finally I understand the camera stacking..thnx❤️
This is all fine and good until you want shadows on your gun, in which case the overlay camera will just render your weapon as if you are outside forever
for some reason... stack and render type doesnt exist.
so fucking annoying
Thanks my G, i watched 3 tutorials and everytime when I did what they said my Weapon dissappeared when I started the game, but you made some other changes and now everything works, thanks my guy!
any help i cant find Render Type plzz ?
Thanks i was trying to do that but none worked thanks a lot
There is no option to change the camera to overlay
Thanks for the quick run-through on how to set this up.
Thanks, that works.
the only way to do it now is to just make the weapon a 2d image and put it as UI image overlaying it like you would with crosshairs. and if you want animations with it, well youre gonna have to use sprite animation or some shit.
Ur a fucking life saver by teaching me how to make cameras not render certain things cuz I can not begin to explain the lack of tutorials on this simple common issue and u fixed it so quickly and easily In a great explanation. THANK YOUUUU!
If you cant see the render type in your camera settings, just install the universal render pipeline.
1: Import it from the package manager.
2: Right click in your project tab, select "Rendering", universal render pipeline and then press pipeline asset. (press after you have clicked on the pipeline asset).
3: Go in to the Edit tab/project settings/graphics, where it says none on the render pipeline press the circle and select the universal render pipeline.
4: Edit tab/Render Pipeline/Universal render pipeline and press upgrade project materials to universalRP materials.
5: Done!
I have this URP imported to my project but when im in the Graphis tab the URP doesnt exist when i click on the little circle
Hi, i have this problem but with VR, do you know how can i solve it??
Thanks for keeping it so simple, Great tutorial
when I was watching this I noticed I didnt have any of the camera settings so I had to learn how to use the URP first but I got there and now my weapon doesnt clip, thanks.
On HDRP?
This is the first video which is pretty up-to-date.
It works in Unity Version 2019 URP for me. Thanks a lot!
Great video, but can you do one for clipping in HDRP? Apparently, you have to do custom pass or something. Thanks!
Really useful, been trying to find this for ages. easy thumbs up!
good sir you have the exact video I was looking for. Do you mid if I throw a few problems your way in discord. I am trying to make an aiming system with procedural guns that are generated during run-time. the problem I have is that the guns will have scopes and iron sights which means I need a system that can adjust for both.
Thanks a bunch
this was made on my birthday :)
damn this guys energy!
How did you make your weapon rotation?
Cheers!
Thank you so much, you wonderful person.
Thanks, it was hard to get this fix using URP
Thank you so much❤️❤️❤️
simple and fast thx
2:56 start
Amazing tutorial, thank you.
ty bro
Where can I get that skybox? Please reply.
I'm not sure. It's been a while, it will just be free from unity store
@@comp3interactive Thanks.
Great !!!!
To bad it can't actually be done.
True. I only made it work on the video in after effects... Rumbled
@@comp3interactive Sorry, I was getting frustrated, but I figured out how to do it in 2020.
The thing is if the player drop the gun the player will be able to see it from the room nextdoor, thats the issue i am having
Change the layer when you drop the weapon then
@@comp3interactive i sm sure tjere is s better way
It's literally: weapon.layer = LayerMask.NameToLayer("Default") or ("Weapon")
@@comp3interactive ah thanks will use this 😀😁
oof, it kinda doesn't work on 2020 because there is no camera stacking i guess
Camera stacking is implemented in URP/HDRP
@@comp3interactive the newest version removed camera stacking as far as I know, they said it was too unreliable
Well that sucks... The way to do it in the standard pipeline is to have your weapon camera rendering only a weapon layer and then set the weapon camera render mode to "depth only" to occlude any sky box or other geometry. That might still be a viable solution for URP/HDRP
@@comp3interactive well I’ve tried that and multiple methods but to no avail, would be appreciated if you could do an updated video about this, though. But if you dont want to then thats alright.
Yeah I'm curious as to how it'd be done outside of the SRP now tbh, I don't often use URP/HDRP myself so I'm not entirely clued up on some of the nuances
esta bueno pero habla mucho señor