#[repr(C)]pub struct CameraData {Show 34 fields
pub m_view_matrix: Matrix4x4,
pub m_projection_matrix: Matrix4x4,
pub camera: Camera,
pub render_type: CameraRenderType,
pub target_texture: RenderTexture,
pub camera_target_descriptor: RenderTextureDescriptor,
pub pixel_rect: Rect,
pub pixel_width: i32,
pub pixel_height: i32,
pub aspect_ratio: f32,
pub render_scale: f32,
pub clear_depth: bool,
pub camera_type: CameraType,
pub is_default_viewport: bool,
pub is_hdr_enabled: bool,
pub requires_depth_texture: bool,
pub requires_opaque_texture: bool,
pub xr_rendering: bool,
pub default_opaque_sort_flags: SortingCriteria,
pub xr: XRPass,
pub is_stereo_enabled: bool,
pub max_shadow_distance: f32,
pub post_process_enabled: bool,
pub capture_actions: IEnumerator_1<Action_2<RenderTargetIdentifier, CommandBuffer>>,
pub volume_layer_mask: LayerMask,
pub volume_trigger: Transform,
pub is_stop_na_n_enabled: bool,
pub is_dithering_enabled: bool,
pub antialiasing: AntialiasingMode,
pub antialiasing_quality: AntialiasingQuality,
pub renderer: ScriptableRenderer,
pub resolve_final_target: bool,
pub is_auto_reduction: bool,
pub custom_rendering_flag: CustomCameraRenderingFlag,
}Expand description
Fields§
§m_view_matrix: Matrix4x4§m_projection_matrix: Matrix4x4§camera: Camera§render_type: CameraRenderType§target_texture: RenderTexture§camera_target_descriptor: RenderTextureDescriptor§pixel_rect: Rect§pixel_width: i32§pixel_height: i32§aspect_ratio: f32§render_scale: f32§clear_depth: bool§camera_type: CameraType§is_default_viewport: bool§is_hdr_enabled: bool§requires_depth_texture: bool§requires_opaque_texture: bool§xr_rendering: bool§default_opaque_sort_flags: SortingCriteria§xr: XRPass§is_stereo_enabled: bool§max_shadow_distance: f32§post_process_enabled: bool§capture_actions: IEnumerator_1<Action_2<RenderTargetIdentifier, CommandBuffer>>§volume_layer_mask: LayerMask§volume_trigger: Transform§is_stop_na_n_enabled: bool§is_dithering_enabled: bool§antialiasing: AntialiasingMode§antialiasing_quality: AntialiasingQuality§renderer: ScriptableRenderer§resolve_final_target: bool§is_auto_reduction: bool§custom_rendering_flag: CustomCameraRenderingFlagImplementations§
Source§impl CameraData
impl CameraData
Sourcepub fn set_view_and_projection_matrix(
&mut self,
view_matrix: impl Into<Matrix4x4>,
projection_matrix: impl Into<Matrix4x4>,
)
pub fn set_view_and_projection_matrix( &mut self, view_matrix: impl Into<Matrix4x4>, projection_matrix: impl Into<Matrix4x4>, )
SetViewAndProjectionMatrix(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::matrix4x4::Matrix4x4) overload
Sourcepub fn get_view_matrix(&mut self, view_index: impl Into<i32>) -> Matrix4x4
pub fn get_view_matrix(&mut self, view_index: impl Into<i32>) -> Matrix4x4
GetViewMatrix(i32) overload
Sourcepub fn get_projection_matrix(&mut self, view_index: impl Into<i32>) -> Matrix4x4
pub fn get_projection_matrix(&mut self, view_index: impl Into<i32>) -> Matrix4x4
GetProjectionMatrix(i32) overload
Sourcepub fn get_gpu_projection_matrix(
&mut self,
view_index: impl Into<i32>,
) -> Matrix4x4
pub fn get_gpu_projection_matrix( &mut self, view_index: impl Into<i32>, ) -> Matrix4x4
GetGPUProjectionMatrix(i32) overload
Sourcepub fn get_require_srgb_conversion(&mut self) -> bool
pub fn get_require_srgb_conversion(&mut self) -> bool
get_requireSrgbConversion() overload
Sourcepub fn get_is_scene_view_camera(&mut self) -> bool
pub fn get_is_scene_view_camera(&mut self) -> bool
get_isSceneViewCamera() overload
Sourcepub fn get_is_preview_camera(&mut self) -> bool
pub fn get_is_preview_camera(&mut self) -> bool
get_isPreviewCamera() overload
Sourcepub fn is_camera_projection_matrix_flipped(&mut self) -> bool
pub fn is_camera_projection_matrix_flipped(&mut self) -> bool
IsCameraProjectionMatrixFlipped() overload
Source§impl CameraData
impl CameraData
pub fn set_view_and_projection_matrix_method_info() -> &'static MethodInfo
pub fn get_view_matrix_method_info() -> &'static MethodInfo
pub fn get_projection_matrix_method_info() -> &'static MethodInfo
pub fn get_gpu_projection_matrix_method_info() -> &'static MethodInfo
pub fn get_require_srgb_conversion_method_info() -> &'static MethodInfo
pub fn get_is_scene_view_camera_method_info() -> &'static MethodInfo
pub fn get_is_preview_camera_method_info() -> &'static MethodInfo
pub fn is_camera_projection_matrix_flipped_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for CameraData
impl ClassIdentity for CameraData
Source§impl Clone for CameraData
impl Clone for CameraData
Source§fn clone(&self) -> CameraData
fn clone(&self) -> CameraData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraData
Auto Trait Implementations§
impl Freeze for CameraData
impl RefUnwindSafe for CameraData
impl !Send for CameraData
impl !Sync for CameraData
impl Unpin for CameraData
impl UnwindSafe for CameraData
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)