UnityEngineCamera
API reference for UnityEngineCamera.
Properties
| Property | Type | Access |
|---|---|---|
| activeTexture | UnityEngineRenderTexture | get |
| actualRenderingPath | UnityEngineRenderingPath | get |
| allowDynamicResolution | bool | get, set |
| allowHDR | bool | get, set |
| allowMSAA | bool | get, set |
| anamorphism | float | get, set |
| aperture | float | get, set |
| areVRStereoViewMatricesWithinSingleCullTolerance | bool | get |
| aspect | float | get, set |
| backgroundColor | Color | get, set |
| barrelClipping | float | get, set |
| bladeCount | int | get, set |
| cameraToWorldMatrix | UnityEngineMatrix4x4 | get |
| cameraType | UnityEngineCameraType | get, set |
| clearFlags | UnityEngineCameraClearFlags | get, set |
| clearStencilAfterLightingPass | bool | get, set |
| cullingMask | int | get, set |
| cullingMatrix | UnityEngineMatrix4x4 | get, set |
| curvature | Vector2 | get, set |
| depth | float | get, set |
| depthTextureMode | UnityEngineDepthTextureMode | get, set |
| enabled | bool | get, set |
| eventMask | int | get, set |
| farClipPlane | float | get, set |
| fieldOfView | float | get, set |
| focalLength | float | get, set |
| focusDistance | float | get, set |
| forceIntoRenderTexture | bool | get, set |
| gameObject | GameObject | get |
| gateFit | UnityEngineCameraGateFitMode | get, set |
| iso | int | get, set |
| kMaxAperture | float | get |
| kMaxBladeCount | int | get |
| kMinAperture | float | get |
| kMinBladeCount | int | get |
| layerCullDistances | float[] | get, set |
| layerCullSpherical | bool | get, set |
| lensShift | Vector2 | get, set |
| name | string | get, set |
| nearClipPlane | float | get, set |
| nonJitteredProjectionMatrix | UnityEngineMatrix4x4 | get, set |
| opaqueSortMode | UnityEngineRenderingOpaqueSortMode | get, set |
| orthographic | bool | get, set |
| orthographicSize | float | get, set |
| overrideSceneCullingMask | SystemUInt64 | get, set |
| pixelHeight | int | get |
| pixelRect | UnityEngineRect | get, set |
| pixelWidth | int | get |
| previousViewProjectionMatrix | UnityEngineMatrix4x4 | get |
| projectionMatrix | UnityEngineMatrix4x4 | get, set |
| rect | UnityEngineRect | get, set |
| renderingPath | UnityEngineRenderingPath | get, set |
| scaledPixelHeight | int | get |
| scaledPixelWidth | int | get |
| sensorSize | Vector2 | get, set |
| shutterSpeed | float | get, set |
| stereoActiveEye | UnityEngineCameraMonoOrStereoscopicEye | get |
| stereoConvergence | float | get, set |
| stereoEnabled | bool | get |
| stereoSeparation | float | get, set |
| stereoTargetEye | UnityEngineStereoTargetEyeMask | get, set |
| targetDisplay | int | get, set |
| targetTexture | UnityEngineRenderTexture | get, set |
| transform | Transform | get |
| transparencySortAxis | Vector3 | get, set |
| transparencySortMode | UnityEngineTransparencySortMode | get, set |
| useJitteredProjectionMatrixForTransparentRendering | bool | get, set |
| useOcclusionCulling | bool | get, set |
| usePhysicalProperties | bool | get, set |
| velocity | Vector3 | get |
| worldToCameraMatrix | UnityEngineMatrix4x4 | get, set |
Methods
CalculateFrustumCorners
CalculateFrustumCorners(viewport: UnityEngineRect, z: float, eye: UnityEngineCameraMonoOrStereoscopicEye, outCorners: Vector3[]) -> voidCalculateObliqueMatrix
CalculateObliqueMatrix(clipPlane: Vector4) -> UnityEngineMatrix4x4CalculateProjectionMatrixFromPhysicalProperties
static CalculateProjectionMatrixFromPhysicalProperties(output: UnityEngineMatrix4x4, focalLength: float, sensorSize: Vector2, lensShift: Vector2, nearClip: float, farClip: float, gateFitParameters: UnityEngineCameraGateFitParameters) -> UnityEngineMatrix4x4CopyFrom
CopyFrom(other: UnityEngineCamera) -> voidCopyStereoDeviceProjectionMatrixToNonJittered
CopyStereoDeviceProjectionMatrixToNonJittered(eye: UnityEngineCameraStereoscopicEye) -> voidEquals
Equals(other: object) -> boolFieldOfViewToFocalLength
static FieldOfViewToFocalLength(fieldOfView: float, sensorSize: float) -> floatFocalLengthToFieldOfView
static FocalLengthToFieldOfView(focalLength: float, sensorSize: float) -> floatGetComponent
GetComponent(type: string) -> UnityEngineComponentGetComponent(type: SystemType) -> UnityEngineComponentGetComponent(type: SystemType) -> UnityEngineObjectGetComponentInChildren
GetComponentInChildren(includeInactive: bool, type: SystemType) -> UnityEngineObjectGetComponentInChildren(t: SystemType, includeInactive: bool) -> UnityEngineComponentGetComponentInChildren(t: SystemType) -> UnityEngineComponentGetComponentInChildren(type: SystemType) -> UnityEngineObjectGetComponentInParent
GetComponentInParent(includeInactive: bool, type: SystemType) -> UnityEngineObjectGetComponentInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponentGetComponentInParent(t: SystemType) -> UnityEngineComponentGetComponentInParent(type: SystemType) -> UnityEngineObjectGetComponents
GetComponents(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> voidGetComponents(type: SystemType, results: SystemCollectionsGenericList`1[[UnityEngineComponent, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> voidGetComponents(type: SystemType) -> UnityEngineComponent[]GetComponents(type: SystemType) -> UnityEngineObject[]GetComponentsInChildren
GetComponentsInChildren(results: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]], type: SystemType) -> voidGetComponentsInChildren(includeInactive: bool, result: SystemCollectionsGenericList`1[[UnityEngineObject, UnityEngineCoreModule, Version=0000, Culture=neutral, PublicKeyToken=null]]) -> voidGetComponentsInChildren(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]]) -> voidGetComponentsInParent(includeInactive: bool, type: SystemType) -> UnityEngineObject[]GetComponentsInParent(t: SystemType, includeInactive: bool) -> UnityEngineComponent[]GetComponentsInParent(t: SystemType) -> UnityEngineComponent[]GetComponentsInParent(type: SystemType) -> UnityEngineObject[]GetGateFittedFieldOfView
GetGateFittedFieldOfView() -> floatGetGateFittedLensShift
GetGateFittedLensShift() -> Vector2GetHashCode
GetHashCode() -> intGetInstanceID
GetInstanceID() -> intGetStereoNonJitteredProjectionMatrix
GetStereoNonJitteredProjectionMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4GetStereoProjectionMatrix
GetStereoProjectionMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4GetStereoViewMatrix
GetStereoViewMatrix(eye: UnityEngineCameraStereoscopicEye) -> UnityEngineMatrix4x4GetType
GetType() -> SystemTypeHorizontalToVerticalFieldOfView
static HorizontalToVerticalFieldOfView(horizontalFieldOfView: float, aspectRatio: float) -> floatRender
Render() -> voidRenderDontRestore
RenderDontRestore() -> voidRenderToCubemap
RenderToCubemap(cubemap: UnityEngineCubemap, faceMask: int) -> boolRenderToCubemap(cubemap: UnityEngineCubemap) -> boolRenderToCubemap(cubemap: UnityEngineRenderTexture, faceMask: int, stereoEye: UnityEngineCameraMonoOrStereoscopicEye) -> boolRenderToCubemap(cubemap: UnityEngineRenderTexture, faceMask: int) -> boolRenderToCubemap(cubemap: UnityEngineRenderTexture) -> boolRenderWithShader
RenderWithShader(shader: UnityEngineShader, replacementTag: string) -> voidReset
Reset() -> voidResetAspect
ResetAspect() -> voidResetCullingMatrix
ResetCullingMatrix() -> voidResetProjectionMatrix
ResetProjectionMatrix() -> voidResetReplacementShader
ResetReplacementShader() -> voidResetStereoProjectionMatrices
ResetStereoProjectionMatrices() -> voidResetStereoViewMatrices
ResetStereoViewMatrices() -> voidResetTransparencySortSettings
ResetTransparencySortSettings() -> voidResetWorldToCameraMatrix
ResetWorldToCameraMatrix() -> voidScreenPointToRay
ScreenPointToRay(pos: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> UnityEngineRayScreenPointToRay(pos: Vector3) -> UnityEngineRayScreenToViewportPoint
ScreenToViewportPoint(position: Vector3) -> Vector3ScreenToWorldPoint
ScreenToWorldPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3ScreenToWorldPoint(position: Vector3) -> Vector3SetReplacementShader
SetReplacementShader(shader: UnityEngineShader, replacementTag: string) -> voidSetStereoProjectionMatrix
SetStereoProjectionMatrix(eye: UnityEngineCameraStereoscopicEye, matrix: UnityEngineMatrix4x4) -> voidSetStereoViewMatrix
SetStereoViewMatrix(eye: UnityEngineCameraStereoscopicEye, matrix: UnityEngineMatrix4x4) -> voidSetTargetBuffers
SetTargetBuffers(colorBuffer: UnityEngineRenderBuffer[], depthBuffer: UnityEngineRenderBuffer) -> voidSetTargetBuffers(colorBuffer: UnityEngineRenderBuffer, depthBuffer: UnityEngineRenderBuffer) -> voidSetupCurrent
static SetupCurrent(cur: UnityEngineCamera) -> voidToString
ToString() -> stringVerticalToHorizontalFieldOfView
static VerticalToHorizontalFieldOfView(verticalFieldOfView: float, aspectRatio: float) -> floatViewportPointToRay
ViewportPointToRay(pos: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> UnityEngineRayViewportPointToRay(pos: Vector3) -> UnityEngineRayViewportToScreenPoint
ViewportToScreenPoint(position: Vector3) -> Vector3ViewportToWorldPoint
ViewportToWorldPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3ViewportToWorldPoint(position: Vector3) -> Vector3WorldToScreenPoint
WorldToScreenPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3WorldToScreenPoint(position: Vector3) -> Vector3WorldToViewportPoint
WorldToViewportPoint(position: Vector3, eye: UnityEngineCameraMonoOrStereoscopicEye) -> Vector3WorldToViewportPoint(position: Vector3) -> Vector3