Unity Standard Assets Profile cameras

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.