Making my player model invisible to my camera

So, in FPS games there is a thing where you can only see your hands, not body, but other players do see your model and animations. Is there a way to do this in Unity?

Thanks for help in advance

Most of the FPS games you play (Call of Duty, Battlefield, etc.) have arm/hand models that they use specifically for those in first person. The rest of the body doesn’t actually exist until you die, at which time a ragdoll gets instantiated at your position. You can find some of these hand models (Handy hands) on the asset store, actually.

If you’re trying to make it to where you can zoom in and out and still want the nicely modeled hands effect, you can do one of two things:

  1. Carefully place the camera for FPS view so that you don’t get any undesirable clipping/cutting of the mesh with your camera. Then, just press a key to zoom in/out from Third Person to First Person.

  2. Have two models. One, your full character, and two, just the modeled hands. If the camera is close enough to being first person, enable the hands and disable the full character. Likewise, if the camera zooms out, disable the hands and enable the full character.

There’s only a few instances of popular games that I can think of where you can zoom in seamlessly, one of them being WoW. They use a transparent material for the intermediate stage between Third Person and First Person View. If the camera is close to the character, they turn your character progressively more transparent using the alpha of the material (as well as all of your armor, weapons, etc.).

A few references you’ll want to look at if you’re interested in achieving these effects:

Changing transparency of material (use alpha instead of RGB)

Detect distance between your camera and gameObject to see when to change to transparent:

Turn gameObjects off and on:

If you are doing a multiplayer game you pretty much need a full model, just put the camera ahead of the head a bit so your not looking through the head, however position the arms, hands and whatever else to the new position. I don’t think you can actually disable parts of a single character model just for your view, not without unnecessary scripts that will slow down the game for no reason other than the game creators convenience.