Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How do I fix this?

Discussion in 'Game Design' started by TrexMatrix, Aug 29, 2023.

  1. TrexMatrix

    TrexMatrix

    Joined:
    Aug 8, 2023
    Posts:
    39
    I am making an fps game and when attaching the gun to the player it looks like have the gun is missing, how do I fix this?
     

    Attached Files:

  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,397
    because its too close to the camera and so cant render it as its inside
     
  3. TrexMatrix

    TrexMatrix

    Joined:
    Aug 8, 2023
    Posts:
    39
    but im following the tutorial and he has it the same way and and its not doing that for him and idk how to fix it
     
  4. TrexMatrix

    TrexMatrix

    Joined:
    Aug 8, 2023
    Posts:
    39
    I cant figure out how to get it to work
     
  5. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,187
    Looks like the camera's Clipping Plane settings aren't correct. Try changing that "Near" value to 0.01 and see if that looks right. Basically, the camera ignores anything closer to it than the "Near" distance, so anything really close to the camera doesn't render.

    upload_2023-8-30_11-1-32.png

    They either didn't mentioned that in the tutorial, or you overlooked it, or maybe you didn't put all the objects exact where the tutorial was expecting them to be.
     
    warthos3399 likes this.
  6. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,074
    Did you get through?