pub trait ISpriteMethods: ISprite {
Show 36 methods
// Provided methods
fn ctor(self) { ... }
fn get_packing_mode(self) -> i32 { ... }
fn get_packing_rotation(self) -> i32 { ... }
fn get_packed(self) -> i32 { ... }
fn get_texture_rect(self) -> Rect { ... }
fn get_texture_rect_offset(self) -> Vector2 { ... }
fn get_inner_u_vs(self) -> Vector4 { ... }
fn get_outer_u_vs(self) -> Vector4 { ... }
fn get_padding(self) -> Vector4 { ... }
fn get_bounds(self) -> Bounds { ... }
fn get_rect(self) -> Rect { ... }
fn get_border(self) -> Vector4 { ... }
fn get_texture(self) -> Texture2D { ... }
fn get_secondary_texture(self, index: impl Into<i32>) -> Texture2D { ... }
fn get_pixels_per_unit(self) -> f32 { ... }
fn get_sprite_atlas_texture_scale(self) -> f32 { ... }
fn get_associated_alpha_split_texture(self) -> Texture2D { ... }
fn get_pivot(self) -> Vector2 { ... }
fn get_vertices(self) -> Array<Vector2> { ... }
fn get_triangles(self) -> Array<u16> { ... }
fn get_uv(self) -> Array<Vector2> { ... }
fn get_physics_shape_count(self) -> i32 { ... }
fn get_physics_shape_point_count(self, shape_idx: impl Into<i32>) -> i32 { ... }
fn internal_get_physics_shape_point_count(
self,
shape_idx: impl Into<i32>,
) -> i32 { ... }
fn get_physics_shape(
self,
shape_idx: impl Into<i32>,
physics_shape: impl Into<List_1<Vector2>>,
) -> i32 { ... }
fn override_physics_shape(
self,
physics_shapes: impl Into<IList_1_Interface<Array<Vector2>>>,
) { ... }
fn override_geometry(
self,
vertices: impl Into<Array<Vector2>>,
triangles: impl Into<Array<u16>>,
) { ... }
fn get_texture_rect_injected(self) -> Rect { ... }
fn get_texture_rect_offset_injected(self) -> Vector2 { ... }
fn get_inner_u_vs_injected(self) -> Vector4 { ... }
fn get_outer_u_vs_injected(self) -> Vector4 { ... }
fn get_padding_injected(self) -> Vector4 { ... }
fn get_bounds_injected(self) -> Bounds { ... }
fn get_rect_injected(self) -> Rect { ... }
fn get_border_injected(self) -> Vector4 { ... }
fn get_pivot_injected(self) -> Vector2 { ... }
}Provided Methods§
Sourcefn get_packing_mode(self) -> i32
fn get_packing_mode(self) -> i32
GetPackingMode() overload
Sourcefn get_packing_rotation(self) -> i32
fn get_packing_rotation(self) -> i32
GetPackingRotation() overload
Sourcefn get_packed(self) -> i32
fn get_packed(self) -> i32
GetPacked() overload
Sourcefn get_texture_rect(self) -> Rect
fn get_texture_rect(self) -> Rect
GetTextureRect() overload
Sourcefn get_texture_rect_offset(self) -> Vector2
fn get_texture_rect_offset(self) -> Vector2
GetTextureRectOffset() overload
Sourcefn get_inner_u_vs(self) -> Vector4
fn get_inner_u_vs(self) -> Vector4
GetInnerUVs() overload
Sourcefn get_outer_u_vs(self) -> Vector4
fn get_outer_u_vs(self) -> Vector4
GetOuterUVs() overload
Sourcefn get_padding(self) -> Vector4
fn get_padding(self) -> Vector4
GetPadding() overload
Sourcefn get_bounds(self) -> Bounds
fn get_bounds(self) -> Bounds
get_bounds() overload
Sourcefn get_border(self) -> Vector4
fn get_border(self) -> Vector4
get_border() overload
Sourcefn get_texture(self) -> Texture2D
fn get_texture(self) -> Texture2D
get_texture() overload
Sourcefn get_secondary_texture(self, index: impl Into<i32>) -> Texture2D
fn get_secondary_texture(self, index: impl Into<i32>) -> Texture2D
GetSecondaryTexture(i32) overload
Sourcefn get_pixels_per_unit(self) -> f32
fn get_pixels_per_unit(self) -> f32
get_pixelsPerUnit() overload
Sourcefn get_sprite_atlas_texture_scale(self) -> f32
fn get_sprite_atlas_texture_scale(self) -> f32
get_spriteAtlasTextureScale() overload
Sourcefn get_associated_alpha_split_texture(self) -> Texture2D
fn get_associated_alpha_split_texture(self) -> Texture2D
get_associatedAlphaSplitTexture() overload
Sourcefn get_vertices(self) -> Array<Vector2>
fn get_vertices(self) -> Array<Vector2>
get_vertices() overload
Sourcefn get_triangles(self) -> Array<u16>
fn get_triangles(self) -> Array<u16>
get_triangles() overload
Sourcefn get_physics_shape_count(self) -> i32
fn get_physics_shape_count(self) -> i32
GetPhysicsShapeCount() overload
Sourcefn get_physics_shape_point_count(self, shape_idx: impl Into<i32>) -> i32
fn get_physics_shape_point_count(self, shape_idx: impl Into<i32>) -> i32
GetPhysicsShapePointCount(i32) overload
Sourcefn internal_get_physics_shape_point_count(
self,
shape_idx: impl Into<i32>,
) -> i32
fn internal_get_physics_shape_point_count( self, shape_idx: impl Into<i32>, ) -> i32
Internal_GetPhysicsShapePointCount(i32) overload
Sourcefn get_physics_shape(
self,
shape_idx: impl Into<i32>,
physics_shape: impl Into<List_1<Vector2>>,
) -> i32
fn get_physics_shape( self, shape_idx: impl Into<i32>, physics_shape: impl Into<List_1<Vector2>>, ) -> i32
GetPhysicsShape(i32, crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector2::Vector2>) overload
Sourcefn override_physics_shape(
self,
physics_shapes: impl Into<IList_1_Interface<Array<Vector2>>>,
)
fn override_physics_shape( self, physics_shapes: impl Into<IList_1_Interface<Array<Vector2>>>, )
OverridePhysicsShape(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<::unity::Array<crate::unity_engine::vector2::Vector2>>) overload
Sourcefn override_geometry(
self,
vertices: impl Into<Array<Vector2>>,
triangles: impl Into<Array<u16>>,
)
fn override_geometry( self, vertices: impl Into<Array<Vector2>>, triangles: impl Into<Array<u16>>, )
OverrideGeometry(::unity::Array<crate::unity_engine::vector2::Vector2>, ::unity::Array<u16>) overload
Sourcefn get_texture_rect_injected(self) -> Rect
fn get_texture_rect_injected(self) -> Rect
GetTextureRect_Injected(*mutcrate::unity_engine::rect::Rect) overload
Sourcefn get_texture_rect_offset_injected(self) -> Vector2
fn get_texture_rect_offset_injected(self) -> Vector2
GetTextureRectOffset_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Sourcefn get_inner_u_vs_injected(self) -> Vector4
fn get_inner_u_vs_injected(self) -> Vector4
GetInnerUVs_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn get_outer_u_vs_injected(self) -> Vector4
fn get_outer_u_vs_injected(self) -> Vector4
GetOuterUVs_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn get_padding_injected(self) -> Vector4
fn get_padding_injected(self) -> Vector4
GetPadding_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn get_bounds_injected(self) -> Bounds
fn get_bounds_injected(self) -> Bounds
get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload
Sourcefn get_rect_injected(self) -> Rect
fn get_rect_injected(self) -> Rect
get_rect_Injected(*mutcrate::unity_engine::rect::Rect) overload
Sourcefn get_border_injected(self) -> Vector4
fn get_border_injected(self) -> Vector4
get_border_Injected(*mutcrate::unity_engine::vector4::Vector4) overload
Sourcefn get_pivot_injected(self) -> Vector2
fn get_pivot_injected(self) -> Vector2
get_pivot_Injected(*mutcrate::unity_engine::vector2::Vector2) 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: ISprite> ISpriteMethods for __T
unity_engine-sprite only.