Skip to content

Player.ObjectSetup

Wesley Haws edited this page Apr 22, 2017 · 19 revisions

Player - Object Setup


Table of Contents

Overview


This setup assumes a FPS player setup. You can position these how you see fit. Have an arms only object and the full body object as well. The full body will be the "shadow" but the arms will be visible. The "arms" should be the root gameobject:

Hierarchy

  • FPSArmsOnly = "Root Object"
  • CameraHolder = "Camera Object"
  • PlayerShadow = "Shadow Object"

Visual Setup

To make the shadow effect you need to go to the mesh renderer on the gameobject and select "Shadows Only".

Shadows Only

Root Object Setup


Tag: Player

Root Object setup (According to the picture example this is "FPSArmsOnly"): Root Setup

To get an example of what each of these scripts do be sure to look in the scripts docs or follow these links:

Shadow Object Setup


Shadow Setup

For example setups and in-depth details about these scripts follow the links or look at the Script Docs.

Camera Object Setup


Camera Hierarchy

Camera Hierarchy

Root Camera Object setup

Tag: CameraHolder

Root Camera Object Setup

You really only need 2 child objects of the Camera Object. One should be for the actual camera and another for the flashlight.

Child Camera Object (Object that holds the camera):

Tag: PlayerCamera

Child Camera Object

This also has a custom Animation object (completely optional). This is to produce a slight camera sway that gives a bit more life to your camera.

Animation Setup

This is important to note that this is using the Legacy system. Basically this is an animation that I made myself. This is simple to make and I leave this to your discretion.

Flashlight Object:

Tag: PlayerFlashlight

FlashLight Object

For specific setups and how to use each script follow the links or look in the Scripts Docs.

Clone this wiki locally