UnityEssentials
Small but useful tools and features for Unity
|
Extensions for the Camera component More...
Static Public Member Functions | |
static void | SetLerp (this Camera self, Camera a, Camera b, float t) |
Linearly interpolates between two cameras. More... | |
static void | SetProperties (this Camera cam, Color backgroundColor, float fieldOfView, float farClipPlane, float nearClipPlane, Rect rect, float depth) |
Sets the camera parameters that can be linearly interpolated. More... | |
Extensions for the Camera component
Definition at line 7 of file CameraExtensions.cs.
|
static |
Linearly interpolates between two cameras.
When t = 0 returns a. When t = 1 returns b. When t = 0.5 returns the point midway between a and b.
Definition at line 13 of file CameraExtensions.cs.
|
static |
Sets the camera parameters that can be linearly interpolated.
backgroundColor | The color with which the screen will be cleared. |
fieldOfView | The field of view of the camera in degrees. |
farClipPlane | The distance of the far clipping plane from the Camera, in world units. |
nearClipPlane | The distance of the near clipping plane from the the Camera, in world units. |
rect | Where on the screen is the camera rendered in normalized coordinates. |
depth | Camera's depth in the camera rendering order. |
Definition at line 35 of file CameraExtensions.cs.