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§
Sourcefn get_bounds(self) -> Bounds
fn get_bounds(self) -> Bounds
get_bounds() overload
Sourcefn set_static_lightmap_st(self, st: impl Into<Vector4>)
fn set_static_lightmap_st(self, st: impl Into<Vector4>)
SetStaticLightmapST(crate::unity_engine::vector4::Vector4) overload
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
GetMaterial() overload
GetSharedMaterial() overload
Sourcefn set_material(self, m: impl Into<Material>)
fn set_material(self, m: impl Into<Material>)
SetMaterial(crate::unity_engine::material::Material) overload
Sourcefn get_material_array(self) -> Array<Material>
fn get_material_array(self) -> Array<Material>
GetMaterialArray() overload
Sourcefn set_material_array(self, m: impl Into<Array<Material>>)
fn set_material_array(self, m: impl Into<Array<Material>>)
SetMaterialArray(::unity::Array<crate::unity_engine::material::Material>) overload
Sourcefn internal_set_property_block(
self,
properties: impl Into<MaterialPropertyBlock>,
)
fn internal_set_property_block( self, properties: impl Into<MaterialPropertyBlock>, )
Internal_SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock) overload
Sourcefn set_property_block(self, properties: impl Into<MaterialPropertyBlock>)
fn set_property_block(self, properties: impl Into<MaterialPropertyBlock>)
SetPropertyBlock(crate::unity_engine::materialpropertyblock::MaterialPropertyBlock) overload
Sourcefn get_enabled(self) -> bool
fn get_enabled(self) -> bool
get_enabled() overload
Sourcefn set_enabled(self, value: impl Into<bool>)
fn set_enabled(self, value: impl Into<bool>)
set_enabled(bool) overload
Sourcefn get_is_visible(self) -> bool
fn get_is_visible(self) -> bool
get_isVisible() overload
Sourcefn get_shadow_casting_mode(self) -> ShadowCastingMode
fn get_shadow_casting_mode(self) -> ShadowCastingMode
get_shadowCastingMode() overload
Sourcefn set_shadow_casting_mode(self, value: impl Into<ShadowCastingMode>)
fn set_shadow_casting_mode(self, value: impl Into<ShadowCastingMode>)
set_shadowCastingMode(crate::unity_engine::rendering::shadowcastingmode::ShadowCastingMode) overload
Sourcefn set_receive_shadows(self, value: impl Into<bool>)
fn set_receive_shadows(self, value: impl Into<bool>)
set_receiveShadows(bool) overload
Sourcefn set_motion_vector_generation_mode(
self,
value: impl Into<MotionVectorGenerationMode>,
)
fn set_motion_vector_generation_mode( self, value: impl Into<MotionVectorGenerationMode>, )
set_motionVectorGenerationMode(crate::unity_engine::motionvectorgenerationmode::MotionVectorGenerationMode) overload
Sourcefn get_sorting_layer_id(self) -> i32
fn get_sorting_layer_id(self) -> i32
get_sortingLayerID() overload
Sourcefn set_sorting_layer_id(self, value: impl Into<i32>)
fn set_sorting_layer_id(self, value: impl Into<i32>)
set_sortingLayerID(i32) overload
Sourcefn get_sorting_order(self) -> i32
fn get_sorting_order(self) -> i32
get_sortingOrder() overload
Sourcefn set_sorting_order(self, value: impl Into<i32>)
fn set_sorting_order(self, value: impl Into<i32>)
set_sortingOrder(i32) overload
Sourcefn get_lightmap_index(self) -> i32
fn get_lightmap_index(self) -> i32
get_lightmapIndex() overload
Sourcefn set_lightmap_index(self, value: impl Into<i32>)
fn set_lightmap_index(self, value: impl Into<i32>)
set_lightmapIndex(i32) overload
Sourcefn get_lightmap_scale_offset(self) -> Vector4
fn get_lightmap_scale_offset(self) -> Vector4
get_lightmapScaleOffset() overload
Sourcefn set_lightmap_scale_offset(self, value: impl Into<Vector4>)
fn set_lightmap_scale_offset(self, value: impl Into<Vector4>)
set_lightmapScaleOffset(crate::unity_engine::vector4::Vector4) overload
GetSharedMaterialArray() overload
Sourcefn get_materials(self) -> Array<Material>
fn get_materials(self) -> Array<Material>
get_materials() overload
Sourcefn set_materials(self, value: impl Into<Array<Material>>)
fn set_materials(self, value: impl Into<Array<Material>>)
set_materials(::unity::Array<crate::unity_engine::material::Material>) overload
set_sharedMaterial(crate::unity_engine::material::Material) overload
get_sharedMaterials() overload
set_sharedMaterials(::unity::Array<crate::unity_engine::material::Material>) overload
Sourcefn get_bounds_injected(self) -> Bounds
fn get_bounds_injected(self) -> Bounds
get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload
Sourcefn set_static_lightmap_st_injected(self) -> Vector4
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§
impl<__T: IRenderer> IRendererMethods for __T
unity_engine-renderer only.