pub trait IGraphicMethods: IGraphic {
Show 56 methods
// Provided methods
fn get_color(self) -> Color { ... }
fn set_color(self, value: impl Into<Color>) { ... }
fn get_raycast_target(self) -> bool { ... }
fn set_raycast_target(self, value: impl Into<bool>) { ... }
fn get_raycast_padding(self) -> Vector4 { ... }
fn set_raycast_padding(self, value: impl Into<Vector4>) { ... }
fn get_use_legacy_mesh_generation(self) -> bool { ... }
fn set_use_legacy_mesh_generation(self, value: impl Into<bool>) { ... }
fn ctor(self) { ... }
fn set_all_dirty(self) { ... }
fn set_layout_dirty(self) { ... }
fn set_vertices_dirty(self) { ... }
fn set_material_dirty(self) { ... }
fn on_rect_transform_dimensions_change(self) { ... }
fn on_before_transform_parent_changed(self) { ... }
fn on_transform_parent_changed(self) { ... }
fn get_depth(self) -> i32 { ... }
fn get_rect_transform(self) -> RectTransform { ... }
fn get_canvas(self) -> Canvas { ... }
fn cache_canvas(self) { ... }
fn get_canvas_renderer(self) -> CanvasRenderer { ... }
fn get_default_material(self) -> Material { ... }
fn get_material(self) -> Material { ... }
fn set_material(self, value: impl Into<Material>) { ... }
fn get_material_for_rendering(self) -> Material { ... }
fn get_main_texture(self) -> Texture { ... }
fn on_enable(self) { ... }
fn on_disable(self) { ... }
fn on_destroy(self) { ... }
fn on_canvas_hierarchy_changed(self) { ... }
fn on_culling_changed(self) { ... }
fn rebuild(self, update: impl Into<CanvasUpdate>) { ... }
fn layout_complete(self) { ... }
fn graphic_update_complete(self) { ... }
fn update_material(self) { ... }
fn update_geometry(self) { ... }
fn do_mesh_generation(self) { ... }
fn do_legacy_mesh_generation(self) { ... }
fn on_fill_vbo(self, vbo: impl Into<List_1<UIVertex>>) { ... }
fn on_populate_mesh(self, m: impl Into<Mesh>) { ... }
fn on_populate_mesh_2(self, vh: impl Into<VertexHelper>) { ... }
fn on_did_apply_animation_properties(self) { ... }
fn set_native_size(self) { ... }
fn raycast(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool { ... }
fn pixel_adjust_point(self, point: impl Into<Vector2>) -> Vector2 { ... }
fn get_pixel_adjusted_rect(self) -> Rect { ... }
fn cross_fade_color(
self,
target_color: impl Into<Color>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
use_alpha: impl Into<bool>,
) { ... }
fn cross_fade_color_2(
self,
target_color: impl Into<Color>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
use_alpha: impl Into<bool>,
use_rgb: impl Into<bool>,
) { ... }
fn cross_fade_alpha(
self,
alpha: impl Into<f32>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
) { ... }
fn register_dirty_layout_callback(self, action: impl Into<UnityAction>) { ... }
fn unregister_dirty_layout_callback(self, action: impl Into<UnityAction>) { ... }
fn register_dirty_vertices_callback(self, action: impl Into<UnityAction>) { ... }
fn unregister_dirty_vertices_callback(self, action: impl Into<UnityAction>) { ... }
fn register_dirty_material_callback(self, action: impl Into<UnityAction>) { ... }
fn unregister_dirty_material_callback(self, action: impl Into<UnityAction>) { ... }
fn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform { ... }
}Provided Methods§
Sourcefn set_color(self, value: impl Into<Color>)
fn set_color(self, value: impl Into<Color>)
set_color(crate::unity_engine::color::Color) overload
Sourcefn get_raycast_target(self) -> bool
fn get_raycast_target(self) -> bool
get_raycastTarget() overload
Sourcefn set_raycast_target(self, value: impl Into<bool>)
fn set_raycast_target(self, value: impl Into<bool>)
set_raycastTarget(bool) overload
Sourcefn get_raycast_padding(self) -> Vector4
fn get_raycast_padding(self) -> Vector4
get_raycastPadding() overload
Sourcefn set_raycast_padding(self, value: impl Into<Vector4>)
fn set_raycast_padding(self, value: impl Into<Vector4>)
set_raycastPadding(crate::unity_engine::vector4::Vector4) overload
Sourcefn get_use_legacy_mesh_generation(self) -> bool
fn get_use_legacy_mesh_generation(self) -> bool
get_useLegacyMeshGeneration() overload
Sourcefn set_use_legacy_mesh_generation(self, value: impl Into<bool>)
fn set_use_legacy_mesh_generation(self, value: impl Into<bool>)
set_useLegacyMeshGeneration(bool) overload
Sourcefn set_all_dirty(self)
fn set_all_dirty(self)
SetAllDirty() overload
Sourcefn set_layout_dirty(self)
fn set_layout_dirty(self)
SetLayoutDirty() overload
Sourcefn set_vertices_dirty(self)
fn set_vertices_dirty(self)
SetVerticesDirty() overload
Sourcefn set_material_dirty(self)
fn set_material_dirty(self)
SetMaterialDirty() overload
Sourcefn on_rect_transform_dimensions_change(self)
fn on_rect_transform_dimensions_change(self)
OnRectTransformDimensionsChange() overload
Sourcefn on_before_transform_parent_changed(self)
fn on_before_transform_parent_changed(self)
OnBeforeTransformParentChanged() overload
Sourcefn on_transform_parent_changed(self)
fn on_transform_parent_changed(self)
OnTransformParentChanged() overload
Sourcefn get_rect_transform(self) -> RectTransform
fn get_rect_transform(self) -> RectTransform
get_rectTransform() overload
Sourcefn get_canvas(self) -> Canvas
fn get_canvas(self) -> Canvas
get_canvas() overload
Sourcefn cache_canvas(self)
fn cache_canvas(self)
CacheCanvas() overload
Sourcefn get_canvas_renderer(self) -> CanvasRenderer
fn get_canvas_renderer(self) -> CanvasRenderer
get_canvasRenderer() overload
Sourcefn get_default_material(self) -> Material
fn get_default_material(self) -> Material
get_defaultMaterial() overload
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
get_material() overload
Sourcefn set_material(self, value: impl Into<Material>)
fn set_material(self, value: impl Into<Material>)
set_material(crate::unity_engine::material::Material) overload
Sourcefn get_material_for_rendering(self) -> Material
fn get_material_for_rendering(self) -> Material
get_materialForRendering() overload
Sourcefn get_main_texture(self) -> Texture
fn get_main_texture(self) -> Texture
get_mainTexture() overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn on_canvas_hierarchy_changed(self)
fn on_canvas_hierarchy_changed(self)
OnCanvasHierarchyChanged() overload
Sourcefn on_culling_changed(self)
fn on_culling_changed(self)
OnCullingChanged() overload
Sourcefn rebuild(self, update: impl Into<CanvasUpdate>)
fn rebuild(self, update: impl Into<CanvasUpdate>)
Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate) overload
Sourcefn layout_complete(self)
fn layout_complete(self)
LayoutComplete() overload
Sourcefn graphic_update_complete(self)
fn graphic_update_complete(self)
GraphicUpdateComplete() overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn update_geometry(self)
fn update_geometry(self)
UpdateGeometry() overload
Sourcefn do_mesh_generation(self)
fn do_mesh_generation(self)
DoMeshGeneration() overload
Sourcefn do_legacy_mesh_generation(self)
fn do_legacy_mesh_generation(self)
DoLegacyMeshGeneration() overload
Sourcefn on_fill_vbo(self, vbo: impl Into<List_1<UIVertex>>)
fn on_fill_vbo(self, vbo: impl Into<List_1<UIVertex>>)
OnFillVBO(crate::system::collections::generic::list_1::List_1<crate::unity_engine::uivertex::UIVertex>) overload
Sourcefn on_populate_mesh(self, m: impl Into<Mesh>)
fn on_populate_mesh(self, m: impl Into<Mesh>)
OnPopulateMesh(crate::unity_engine::mesh::Mesh) overload
Sourcefn on_populate_mesh_2(self, vh: impl Into<VertexHelper>)
fn on_populate_mesh_2(self, vh: impl Into<VertexHelper>)
OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn on_did_apply_animation_properties(self)
fn on_did_apply_animation_properties(self)
OnDidApplyAnimationProperties() overload
Sourcefn set_native_size(self)
fn set_native_size(self)
SetNativeSize() overload
Sourcefn raycast(
self,
sp: impl Into<Vector2>,
event_camera: impl Into<Camera>,
) -> bool
fn raycast( self, sp: impl Into<Vector2>, event_camera: impl Into<Camera>, ) -> bool
Raycast(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera) overload
Sourcefn pixel_adjust_point(self, point: impl Into<Vector2>) -> Vector2
fn pixel_adjust_point(self, point: impl Into<Vector2>) -> Vector2
PixelAdjustPoint(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_pixel_adjusted_rect(self) -> Rect
fn get_pixel_adjusted_rect(self) -> Rect
GetPixelAdjustedRect() overload
Sourcefn cross_fade_color(
self,
target_color: impl Into<Color>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
use_alpha: impl Into<bool>,
)
fn cross_fade_color( self, target_color: impl Into<Color>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, use_alpha: impl Into<bool>, )
CrossFadeColor(crate::unity_engine::color::Color, f32, bool, bool) overload
Sourcefn cross_fade_color_2(
self,
target_color: impl Into<Color>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
use_alpha: impl Into<bool>,
use_rgb: impl Into<bool>,
)
fn cross_fade_color_2( self, target_color: impl Into<Color>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, use_alpha: impl Into<bool>, use_rgb: impl Into<bool>, )
CrossFadeColor(crate::unity_engine::color::Color, f32, bool, bool, bool) overload
Sourcefn cross_fade_alpha(
self,
alpha: impl Into<f32>,
duration: impl Into<f32>,
ignore_time_scale: impl Into<bool>,
)
fn cross_fade_alpha( self, alpha: impl Into<f32>, duration: impl Into<f32>, ignore_time_scale: impl Into<bool>, )
CrossFadeAlpha(f32, f32, bool) overload
Sourcefn register_dirty_layout_callback(self, action: impl Into<UnityAction>)
fn register_dirty_layout_callback(self, action: impl Into<UnityAction>)
RegisterDirtyLayoutCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn unregister_dirty_layout_callback(self, action: impl Into<UnityAction>)
fn unregister_dirty_layout_callback(self, action: impl Into<UnityAction>)
UnregisterDirtyLayoutCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn register_dirty_vertices_callback(self, action: impl Into<UnityAction>)
fn register_dirty_vertices_callback(self, action: impl Into<UnityAction>)
RegisterDirtyVerticesCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn unregister_dirty_vertices_callback(self, action: impl Into<UnityAction>)
fn unregister_dirty_vertices_callback(self, action: impl Into<UnityAction>)
UnregisterDirtyVerticesCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn register_dirty_material_callback(self, action: impl Into<UnityAction>)
fn register_dirty_material_callback(self, action: impl Into<UnityAction>)
RegisterDirtyMaterialCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn unregister_dirty_material_callback(self, action: impl Into<UnityAction>)
fn unregister_dirty_material_callback(self, action: impl Into<UnityAction>)
UnregisterDirtyMaterialCallback(crate::unity_engine::events::unityaction::UnityAction) overload
Sourcefn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform
fn unity_engine_ui_i_canvas_element_get_transform(self) -> Transform
UnityEngine.UI.ICanvasElement.get_transform() 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: IGraphic> IGraphicMethods for __T
unity_engine-ui-graphic only.