Skip to content

UnityEngineCamera

API reference for UnityEngineCamera.

Properties

PropertyTypeAccess
activeTextureUnityEngineRenderTextureget
actualRenderingPathUnityEngineRenderingPathget
allowDynamicResolutionboolget, set
allowHDRboolget, set
allowMSAAboolget, set
anamorphismfloatget, set
aperturefloatget, set
areVRStereoViewMatricesWithinSingleCullToleranceboolget
aspectfloatget, set
backgroundColorColorget, set
barrelClippingfloatget, set
bladeCountintget, set
cameraToWorldMatrixUnityEngineMatrix4x4get
cameraTypeUnityEngineCameraTypeget, set
clearFlagsUnityEngineCameraClearFlagsget, set
clearStencilAfterLightingPassboolget, set
cullingMaskintget, set
cullingMatrixUnityEngineMatrix4x4get, set
curvatureVector2get, set
depthfloatget, set
depthTextureModeUnityEngineDepthTextureModeget, set
enabledboolget, set
eventMaskintget, set
farClipPlanefloatget, set
fieldOfViewfloatget, set
focalLengthfloatget, set
focusDistancefloatget, set
forceIntoRenderTextureboolget, set
gameObjectGameObjectget
gateFitUnityEngineCameraGateFitModeget, set
isointget, set
kMaxAperturefloatget
kMaxBladeCountintget
kMinAperturefloatget
kMinBladeCountintget
layerCullDistancesfloat[]get, set
layerCullSphericalboolget, set
lensShiftVector2get, set
namestringget, set
nearClipPlanefloatget, set
nonJitteredProjectionMatrixUnityEngineMatrix4x4get, set
opaqueSortModeUnityEngineRenderingOpaqueSortModeget, set
orthographicboolget, set
orthographicSizefloatget, set
overrideSceneCullingMaskSystemUInt64get, set
pixelHeightintget
pixelRectUnityEngineRectget, set
pixelWidthintget
previousViewProjectionMatrixUnityEngineMatrix4x4get
projectionMatrixUnityEngineMatrix4x4get, set
rectUnityEngineRectget, set
renderingPathUnityEngineRenderingPathget, set
scaledPixelHeightintget
scaledPixelWidthintget
sensorSizeVector2get, set
shutterSpeedfloatget, set
stereoActiveEyeUnityEngineCameraMonoOrStereoscopicEyeget
stereoConvergencefloatget, set
stereoEnabledboolget
stereoSeparationfloatget, set
stereoTargetEyeUnityEngineStereoTargetEyeMaskget, set
targetDisplayintget, set
targetTextureUnityEngineRenderTextureget, set
transformTransformget
transparencySortAxisVector3get, set
transparencySortModeUnityEngineTransparencySortModeget, set
useJitteredProjectionMatrixForTransparentRenderingboolget, set
useOcclusionCullingboolget, set
usePhysicalPropertiesboolget, set
velocityVector3get
worldToCameraMatrixUnityEngineMatrix4x4get, set

Methods

CalculateFrustumCorners

CalculateFrustumCorners(viewport: UnityEngineRect, z: float, eye: UnityEngineCameraMonoOrStereoscopicEye, outCorners: Vector3[]) -> void

CalculateObliqueMatrix

CalculateObliqueMatrix(clipPlane: Vector4) -> UnityEngineMatrix4x4

CalculateProjectionMatrixFromPhysicalProperties

static CalculateProjectionMatrixFromPhysicalProperties(output: UnityEngineMatrix4x4, focalLength: float, sensorSize: Vector2, lensShift: Vector2, nearClip: float, farClip: float, gateFitParameters: UnityEngineCameraGateFitParameters) -> UnityEngineMatrix4x4

CopyFrom

CopyFrom(other: UnityEngineCamera) -> void

CopyStereoDeviceProjectionMatrixToNonJittered

CopyStereoDeviceProjectionMatrixToNonJittered(eye: UnityEngineCameraStereoscopicEye) -> void

Equals

Equals(other: object) -> bool

FieldOfViewToFocalLength

static FieldOfViewToFocalLength(fieldOfView: float, sensorSize: float) -> float

FocalLengthToFieldOfView

static FocalLengthToFieldOfView(focalLength: float, sensorSize: float) -> float

GetComponent

GetComponent(type: string) -> UnityEngineComponent
GetComponent(type: SystemType) -> UnityEngineComponent
GetComponent(type: SystemType) -> UnityEngineObject

GetComponentInChildren

GetComponentInChildren(includeInactive: bool, type: SystemType) -> UnityEngineObject
GetComponentInChildren(t: SystemType, includeInactive: bool) -> UnityEngineComponent
GetComponentInChildren(t: SystemType) -> UnityEngineComponent
GetComponentInChildren(type: SystemType) -> UnityEngineObject

GetComponentInParent

GetComponentInParent(includeInactive: bool, type: SystemType) -> UnityEngineObject
GetComponentInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponent
GetComponentInParent(t: SystemType) -> UnityEngineComponent
GetComponentInParent(type: SystemType) -> UnityEngineObject

GetComponents

GetComponents(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> void
GetComponents(type: SystemType, results: SystemCollectionsGenericList`1[[UnityEngineComponent, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> void
GetComponents(type: SystemType) -> UnityEngineComponent[]
GetComponents(type: SystemType) -> UnityEngineObject[]

GetComponentsInChildren

GetComponentsInChildren(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> void
GetComponentsInChildren(includeInactive: bool, result: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> void
GetComponentsInChildren(includeInactive: bool, type: SystemType) -> UnityEngineObject[]
GetComponentsInChildren(t: SystemType, includeInactive: bool) -> UnityEngineComponent[]
GetComponentsInChildren(t: SystemType) -> UnityEngineComponent[]
GetComponentsInChildren(type: SystemType) -> UnityEngineObject[]

GetComponentsInParent

GetComponentsInParent(includeInactive: bool, results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> void
GetComponentsInParent(includeInactive: bool, type: SystemType) -> UnityEngineObject[]
GetComponentsInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponent[]
GetComponentsInParent(t: SystemType) -> UnityEngineComponent[]
GetComponentsInParent(type: SystemType) -> UnityEngineObject[]

GetGateFittedFieldOfView

GetGateFittedFieldOfView() -> float

GetGateFittedLensShift

GetGateFittedLensShift() -> Vector2

GetHashCode

GetHashCode() -> int

GetInstanceID

GetInstanceID() -> int

GetStereoNonJitteredProjectionMatrix

GetStereoNonJitteredProjectionMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4

GetStereoProjectionMatrix

GetStereoProjectionMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4

GetStereoViewMatrix

GetStereoViewMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4

GetType

GetType() -> SystemType

HorizontalToVerticalFieldOfView

static HorizontalToVerticalFieldOfView(horizontalFieldOfView: float, aspectRatio: float) -> float

Render

Render() -> void

RenderDontRestore

RenderDontRestore() -> void

RenderToCubemap

RenderToCubemap(cubemap: UnityEngineCubemap, faceMask: int) -> bool
RenderToCubemap(cubemap: UnityEngineCubemap) -> bool
RenderToCubemap(cubemap: UnityEngineRenderTexture, faceMask: int, stereoEye: UnityEngineCameraMonoOrStereoscopicEye) -> bool
RenderToCubemap(cubemap: UnityEngineRenderTexture, faceMask: int) -> bool
RenderToCubemap(cubemap: UnityEngineRenderTexture) -> bool

RenderWithShader

RenderWithShader(shader: UnityEngineShader, replacementTag: string) -> void

Reset

Reset() -> void

ResetAspect

ResetAspect() -> void

ResetCullingMatrix

ResetCullingMatrix() -> void

ResetProjectionMatrix

ResetProjectionMatrix() -> void

ResetReplacementShader

ResetReplacementShader() -> void

ResetStereoProjectionMatrices

ResetStereoProjectionMatrices() -> void

ResetStereoViewMatrices

ResetStereoViewMatrices() -> void

ResetTransparencySortSettings

ResetTransparencySortSettings() -> void

ResetWorldToCameraMatrix

ResetWorldToCameraMatrix() -> void

ScreenPointToRay

ScreenPointToRay(pos: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> UnityEngineRay
ScreenPointToRay(pos: Vector3) -> UnityEngineRay

ScreenToViewportPoint

ScreenToViewportPoint(position: Vector3) -> Vector3

ScreenToWorldPoint

ScreenToWorldPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3
ScreenToWorldPoint(position: Vector3) -> Vector3

SetReplacementShader

SetReplacementShader(shader: UnityEngineShader, replacementTag: string) -> void

SetStereoProjectionMatrix

SetStereoProjectionMatrix(eye: UnityEngineCameraStereoscopicEye, matrix: UnityEngineMatrix4x4) -> void

SetStereoViewMatrix

SetStereoViewMatrix(eye: UnityEngineCameraStereoscopicEye, matrix: UnityEngineMatrix4x4) -> void

SetTargetBuffers

SetTargetBuffers(colorBuffer: UnityEngineRenderBuffer[], depthBuffer: UnityEngineRenderBuffer) -> void
SetTargetBuffers(colorBuffer: UnityEngineRenderBuffer, depthBuffer: UnityEngineRenderBuffer) -> void

SetupCurrent

static SetupCurrent(cur: UnityEngineCamera) -> void

ToString

ToString() -> string

VerticalToHorizontalFieldOfView

static VerticalToHorizontalFieldOfView(verticalFieldOfView: float, aspectRatio: float) -> float

ViewportPointToRay

ViewportPointToRay(pos: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> UnityEngineRay
ViewportPointToRay(pos: Vector3) -> UnityEngineRay

ViewportToScreenPoint

ViewportToScreenPoint(position: Vector3) -> Vector3

ViewportToWorldPoint

ViewportToWorldPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3
ViewportToWorldPoint(position: Vector3) -> Vector3

WorldToScreenPoint

WorldToScreenPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3
WorldToScreenPoint(position: Vector3) -> Vector3

WorldToViewportPoint

WorldToViewportPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3
WorldToViewportPoint(position: Vector3) -> Vector3