Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode 11 WeaponCamera Issues. #22

Open
IpanTheWrongWay opened this issue Mar 4, 2018 · 1 comment
Open

Episode 11 WeaponCamera Issues. #22

IpanTheWrongWay opened this issue Mar 4, 2018 · 1 comment

Comments

@IpanTheWrongWay
Copy link

My WeaponCamera is not getting disabled. When I press play (with a player prefab already in the level) I see the prefabs weapon through walls, and it floats around the prefab it isn't attached. I get the same result from when I build the game. I have the WeaponCamera attached to the Player Setup scrips to disable. Any ideas?

The first image shows the camera is attached to the script (I am at 6 instead of 7 because I do not have the animation from moving the character, I plan on changing from a sphere to player model later).
camissue

The second image demonstrates what I see when I play (with player prefab or a building game).
playissue

the third image demonstrates the player weapon being shown through the wall.
throughwalls

All of this leads to me to believe the WeaponCamera is not being disabled properly, I was thinking it had something to do with its layer, but after rewatching the video he never changed the WeaponCameras layer.

@cesarchamorro
Copy link

Hey man, I'm so sorry you're having this issue,

Reading the information and watching the images, what i can recommend you is check the layers and also the culling mask in cameras, because you want that of them can be draw by camera, so you will have to check the layers you want to draw with camera one and what you want to draw with the second one.

Let me know the result, see you later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants