This article describes the cameras resource bundle.
folder under the "CameraGuidelines.txt" document, a brief description of the role of each preset and usage.
Prefabs folder:
Cctvcamera.prefab:
The viewing angle follows the camera preset that specifies the rotation of the game object, and the position remains the same when the camera rotates.
Freelookcamerarig.prefab:
The camera preset for the position following the specified game object, and the rotation remains the same when the motion is followed.
Handheldcamera.prefab:
Similar to Cctvcamera, the function of simulating the slight shaking effect of a handheld camera is added.
Multipurposecamerarig.prefab:
A camera preset that positions and rotates the specified game object.
Scripts folder:
This package has a more complete inheritance relationship between the scripts, so let's start with a class diagram.
Abstracttargetfollower:
The base class for the target following script.
M_target: Follow the goal
M_autotargetplayer: Whether to automatically follow the game object tagged as "Player"
M_updatetype: Refresh type (update in Fixedupdate, update in lateupdate, or manual update)
Lookattarget:
A subclass of Abstracttargetfollower that provides a view-following function that rotates its own x-axis and y-axis with the target movement.
Rotationrange:x axis and y-axis rotation angle Range
Followspeed: Follow the speed of movement
Handheldcam:
Lookattarget, which adds the effect of simulating the lens shaking of a handheld camera.
Swayspeed: Shaking Speed
Baseswayamount: Base sloshing Range
Trackingswayamount: Range of shaking when following
Trackingbias: The offset of the wobble when following
Targetfieldofview:
Abstracttargetfollower sub-class, mainly with the use of lookattarget, when the viewing angle is rotated dynamically adjusts the camera FOV, so that the target in the game view of the display size remains unchanged.
Fovadjusttime: The time required for the camera to adjust the FOV
Zoomamountmultiplier:fov zoom factor, the larger the number, the smaller the target appears in the game view
Includeeffectsinsize: The original code does not implement this field function
Pivotbasedcamerarig:
Subclass of Abstracttargetfollower, as the base class for camera control scripts based on level three architecture.
To be continue ...
Unity Standard Assets Profile cameras