PlayerModelHider


Declaration

public sealed class PlayerModelHider : MonoBehaviour

Description

Hides the player model based on the camera zoom distance. This is intended for games that are both 1st and 3rd person.

Properties

playerModelThe player model to show/hide.
zoomThresholdThe zoom percent below which the player model will be hidden.
distanceThresholdThe distance from the camera to the player below which the player model will be hidden.