A script for Main Camera in Unity 3D that works as in Genshin Impact.
- Tested on a 2021.3.19f1 version of the Unity.
- Move the mouse to see the character from different angles
- zoom in and out with the mouse wheel
- obstacle detection and automatic zoom in
- Transparent handling of the player when the camera is very close to the player