Camera¶
More information can be found in the Unity API Reference
Members¶
Member |
Description |
---|---|
Methods¶
Method |
Description |
---|---|
Static members¶
Member |
Description |
---|---|
|
|
|
|
|
|
|
Static methods¶
Method |
Description |
---|---|
|
|
|
Details¶
-
class
Camera
¶ -
-
bool
allowDynamicResolution
¶
-
bool
allowHDR
¶
-
bool
allowMSAA
¶
-
const bool
areVRStereoViewMatricesWithinSingleCullTolerance
¶
-
float
aspect
¶
-
bool
clearStencilAfterLightingPass
¶
-
const int
commandBufferCount
¶
-
int
cullingMask
¶
-
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
¶
-
string
name
¶
-
float
nearClipPlane
¶
-
bool
orthographic
¶
-
float
orthographicSize
¶
-
UInt64
overrideSceneCullingMask
¶
-
const int
pixelHeight
¶
-
const int
pixelWidth
¶
-
const int
scaledPixelHeight
¶
-
const int
scaledPixelWidth
¶
-
float
stereoConvergence
¶
-
const bool
stereoEnabled
¶
-
float
stereoSeparation
¶
-
string
tag
¶
-
int
targetDisplay
¶
-
bool
useJitteredProjectionMatrixForTransparentRendering
¶
-
bool
useOcclusionCulling
¶
-
bool
usePhysicalProperties
¶
-
bool
CompareTag
(string tag)¶
-
float
GetGateFittedFieldOfView
()¶
-
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 float
HorizontalToVerticalFieldOfView
(float horizontalFieldOfView, float aspectRatio)¶
-
static float
VerticalToHorizontalFieldOfView
(float verticalFieldOfView, float aspectRatio)¶
-
bool