Camera
More information can be found in the Unity API Reference and maybe in the Unity Manual.
Constructors
Constructor |
Description |
|---|---|
Members
Member |
Description |
|---|---|
Methods
Method |
Description |
|---|---|
Static members
Member |
Description |
|---|---|
|
|
|
|
|
|
|
Static methods
Method |
Description |
|---|---|
|
|
|
Details
-
class Camera
-
Camera Camera()
-
const Texture activeTexture
-
bool allowDynamicResolution
-
bool allowHDR
-
bool allowMSAA
-
const bool areVRStereoViewMatricesWithinSingleCullTolerance
-
float aspect
-
Color backgroundColor
-
const Matrix4x4 cameraToWorldMatrix
-
bool clearStencilAfterLightingPass
-
const int commandBufferCount
-
int cullingMask
-
Matrix4x4 cullingMatrix
-
float depth
-
bool enabled
-
int eventMask
-
float farClipPlane
-
float fieldOfView
-
float focalLength
-
bool forceIntoRenderTexture
-
const GameObject gameObject
-
const bool isActiveAndEnabled
-
array<float> layerCullDistances
-
bool layerCullSpherical
-
Vector2 lensShift
-
string name
-
float nearClipPlane
-
Matrix4x4 nonJitteredProjectionMatrix
-
bool orthographic
-
float orthographicSize
-
UInt64 overrideSceneCullingMask
-
const int pixelHeight
-
Rect pixelRect
-
const int pixelWidth
-
const Matrix4x4 previousViewProjectionMatrix
-
Matrix4x4 projectionMatrix
-
Rect rect
-
const int scaledPixelHeight
-
const int scaledPixelWidth
-
Vector2 sensorSize
-
float stereoConvergence
-
const bool stereoEnabled
-
float stereoSeparation
-
string tag
-
int targetDisplay
-
const Texture targetTexture
-
const Transform transform
-
Vector3 transparencySortAxis
-
bool useJitteredProjectionMatrixForTransparentRendering
-
bool useOcclusionCulling
-
bool usePhysicalProperties
-
const Vector3 velocity
-
Matrix4x4 worldToCameraMatrix
-
bool CompareTag(string tag)
-
void CopyFrom(Camera other)
-
float GetGateFittedFieldOfView()
-
Vector2 GetGateFittedLensShift()
-
int GetHashCode()
-
void RemoveAllCommandBuffers()
-
void Render()
-
void RenderDontRestore()
-
void Reset()
-
void ResetAspect()
-
void ResetCullingMatrix()
-
void ResetProjectionMatrix()
-
void ResetReplacementShader()
-
void ResetStereoProjectionMatrices()
-
void ResetStereoViewMatrices()
-
void ResetTransparencySortSettings()
-
void ResetWorldToCameraMatrix()
-
string ToString()
- static const array<Camera> allCameras
-
static const int allCamerasCount
-
static const Camera current
-
static const Camera main
-
static float FieldOfViewToFocalLength(float fieldOfView, float sensorSize)
-
static float FocalLengthToFieldOfView(float focalLength, float sensorSize)
-
static int GetAllCameras(array<Camera> cameras)
-
static float HorizontalToVerticalFieldOfView(float horizontalFieldOfView, float aspectRatio)
-
static void SetupCurrent(Camera cur)
-
static float VerticalToHorizontalFieldOfView(float verticalFieldOfView, float aspectRatio)
-
Camera Camera()