Skip to main content

IRendererMethods

Trait IRendererMethods 

Source
pub trait IRendererMethods: IRenderer {
Show 33 methods // Provided methods fn get_bounds(self) -> Bounds { ... } fn set_static_lightmap_st(self, st: impl Into<Vector4>) { ... } fn get_material(self) -> Material { ... } fn get_shared_material(self) -> Material { ... } fn set_material(self, m: impl Into<Material>) { ... } fn get_material_array(self) -> Array<Material> { ... } fn set_material_array(self, m: impl Into<Array<Material>>) { ... } fn internal_set_property_block( self, properties: impl Into<MaterialPropertyBlock>, ) { ... } fn set_property_block(self, properties: impl Into<MaterialPropertyBlock>) { ... } fn get_enabled(self) -> bool { ... } fn set_enabled(self, value: impl Into<bool>) { ... } fn get_is_visible(self) -> bool { ... } fn get_shadow_casting_mode(self) -> ShadowCastingMode { ... } fn set_shadow_casting_mode(self, value: impl Into<ShadowCastingMode>) { ... } fn set_receive_shadows(self, value: impl Into<bool>) { ... } fn set_motion_vector_generation_mode( self, value: impl Into<MotionVectorGenerationMode>, ) { ... } fn get_sorting_layer_id(self) -> i32 { ... } fn set_sorting_layer_id(self, value: impl Into<i32>) { ... } fn get_sorting_order(self) -> i32 { ... } fn set_sorting_order(self, value: impl Into<i32>) { ... } fn get_lightmap_index(self) -> i32 { ... } fn set_lightmap_index(self, value: impl Into<i32>) { ... } fn get_lightmap_scale_offset(self) -> Vector4 { ... } fn set_lightmap_scale_offset(self, value: impl Into<Vector4>) { ... } fn get_shared_material_array(self) -> Array<Material> { ... } fn get_materials(self) -> Array<Material> { ... } fn set_materials(self, value: impl Into<Array<Material>>) { ... } fn set_shared_material(self, value: impl Into<Material>) { ... } fn get_shared_materials(self) -> Array<Material> { ... } fn set_shared_materials(self, value: impl Into<Array<Material>>) { ... } fn ctor(self) { ... } fn get_bounds_injected(self) -> Bounds { ... } fn set_static_lightmap_st_injected(self) -> Vector4 { ... }
}

Provided Methods§

Source

fn get_bounds(self) -> Bounds

get_bounds() overload

Source

fn set_static_lightmap_st(self, st: impl Into<Vector4>)

SetStaticLightmapST(crate::unity_engine::vector4::Vector4) overload

Source

fn get_material(self) -> Material

GetMaterial() overload

Source

fn get_shared_material(self) -> Material

GetSharedMaterial() overload

Source

fn set_material(self, m: impl Into<Material>)

SetMaterial(crate::unity_engine::material::Material) overload

Source

fn get_material_array(self) -> Array<Material>

GetMaterialArray() overload

Source

fn set_material_array(self, m: impl Into<Array<Material>>)

SetMaterialArray(::unity::Array<crate::unity_engine::material::Material>) overload

Source

fn internal_set_property_block( self, properties: impl Into<MaterialPropertyBlock>, )

Internal_SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock) overload

Source

fn set_property_block(self, properties: impl Into<MaterialPropertyBlock>)

SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock) overload

Source

fn get_enabled(self) -> bool

get_enabled() overload

Source

fn set_enabled(self, value: impl Into<bool>)

set_enabled(bool) overload

Source

fn get_is_visible(self) -> bool

get_isVisible() overload

Source

fn get_shadow_casting_mode(self) -> ShadowCastingMode

get_shadowCastingMode() overload

Source

fn set_shadow_casting_mode(self, value: impl Into<ShadowCastingMode>)

set_shadowCastingMode(crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode) overload

Source

fn set_receive_shadows(self, value: impl Into<bool>)

set_receiveShadows(bool) overload

Source

fn set_motion_vector_generation_mode( self, value: impl Into<MotionVectorGenerationMode>, )

set_motionVectorGenerationMode(crate::unity_engine::motionvectorgenerationmode::MotionVectorGenerationMode) overload

Source

fn get_sorting_layer_id(self) -> i32

get_sortingLayerID() overload

Source

fn set_sorting_layer_id(self, value: impl Into<i32>)

set_sortingLayerID(i32) overload

Source

fn get_sorting_order(self) -> i32

get_sortingOrder() overload

Source

fn set_sorting_order(self, value: impl Into<i32>)

set_sortingOrder(i32) overload

Source

fn get_lightmap_index(self) -> i32

get_lightmapIndex() overload

Source

fn set_lightmap_index(self, value: impl Into<i32>)

set_lightmapIndex(i32) overload

Source

fn get_lightmap_scale_offset(self) -> Vector4

get_lightmapScaleOffset() overload

Source

fn set_lightmap_scale_offset(self, value: impl Into<Vector4>)

set_lightmapScaleOffset(crate::unity_engine::vector4::Vector4) overload

Source

fn get_shared_material_array(self) -> Array<Material>

GetSharedMaterialArray() overload

Source

fn get_materials(self) -> Array<Material>

get_materials() overload

Source

fn set_materials(self, value: impl Into<Array<Material>>)

set_materials(::unity::Array<crate::unity_engine::material::Material>) overload

Source

fn set_shared_material(self, value: impl Into<Material>)

set_sharedMaterial(crate::unity_engine::material::Material) overload

Source

fn get_shared_materials(self) -> Array<Material>

get_sharedMaterials() overload

Source

fn set_shared_materials(self, value: impl Into<Array<Material>>)

set_sharedMaterials(::unity::Array<crate::unity_engine::material::Material>) overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_bounds_injected(self) -> Bounds

get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload

Source

fn set_static_lightmap_st_injected(self) -> Vector4

SetStaticLightmapST_Injected(*mutcrate::unity_engine::vector4::Vector4) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IRenderer> IRendererMethods for __T

Available on crate feature unity_engine-renderer only.