|
Post by tsuyoiraion on Nov 25, 2018 21:53:09 GMT
Invector - FOV Auto Update v0.1 Created By: Tsuyoi Raion Contact: dizzymediainc@gmail.com
Description:
Auto updates the FOV for the camera based on distance from camera to the player utilizing the values provided in the inspector for this script (i.e maxRange, minFOV, maxFOV, etc.)
The script will auto grab the initialFOV from the camera state FOV value and save it for resetting the FOV via runtime as well as when the script is either destroyed or the game stops playing (i.e OnDestroy)
Instructions:
To use this asset simply place it on an object in the scene or on the camera object and place in the camera object transform as well as the player transform into the inspector values.
Provided are default values that'll auto set once you place the script on an object, you can of course adjust these values in the inspector to meet your needs.
Each value (i.e stateName, etc.) has instructions/details for it's usage, these will display when the mouse hovers over the value in the inspector.
|
|
|
Post by shadex on Jan 19, 2019 20:26:48 GMT
Invector - FOV Auto Update v0.1 Created By: Tsuyoi Raion Contact: dizzymediainc@gmail.com
Description:
Auto updates the FOV for the camera based on distance from camera to the player utilizing the values provided in the inspector for this script (i.e maxRange, minFOV, maxFOV, etc.)
The script will auto grab the initialFOV from the camera state FOV value and save it for resetting the FOV via runtime as well as when the script is either destroyed or the game stops playing (i.e OnDestroy)
Instructions:
To use this asset simply place it on an object in the scene or on the camera object and place in the camera object transform as well as the player transform into the inspector values.
Provided are default values that'll auto set once you place the script on an object, you can of course adjust these values in the inspector to meet your needs.
Each value (i.e stateName, etc.) has instructions/details for it's usage, these will display when the mouse hovers over the value in the inspector.
Just finally got around to trying this out. Really well done. I love the smoothing when it's adjusting. Though one suggestion... The class name is FOVCont and the scripts file name is FOV Auto Update v0.1. Perhaps change the scripts class name to FOV Auto Update v0.1. That way there are no errors when you download it and drag it into the project.
|
|
|
Post by tsuyoiraion on Jan 20, 2019 3:07:17 GMT
shadex I agree, it should be named same as class, i'll adjust that. Thanks for the kind words, always glad to help out ^_^
|
|