Skip to main content

IDebugShapesMethods

Trait IDebugShapesMethods 

Source
pub trait IDebugShapesMethods: IDebugShapes {
    // Provided methods
    fn build_sphere(
        self,
        radius: impl Into<f32>,
        long_subdiv: impl Into<u32>,
        lat_subdiv: impl Into<u32>,
    ) -> Mesh { ... }
    fn build_box(
        self,
        length: impl Into<f32>,
        width: impl Into<f32>,
        height: impl Into<f32>,
    ) -> Mesh { ... }
    fn build_cone(
        self,
        height: impl Into<f32>,
        top_radius: impl Into<f32>,
        bottom_radius: impl Into<f32>,
        nb_sides: impl Into<i32>,
    ) -> Mesh { ... }
    fn build_pyramid(
        self,
        width: impl Into<f32>,
        height: impl Into<f32>,
        depth: impl Into<f32>,
    ) -> Mesh { ... }
    fn build_shapes(self) { ... }
    fn rebuild_resources(self) { ... }
    fn request_sphere_mesh(self) -> Mesh { ... }
    fn request_box_mesh(self) -> Mesh { ... }
    fn request_cone_mesh(self) -> Mesh { ... }
    fn request_pyramid_mesh(self) -> Mesh { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn build_sphere( self, radius: impl Into<f32>, long_subdiv: impl Into<u32>, lat_subdiv: impl Into<u32>, ) -> Mesh

BuildSphere(*mutcrate::unity_engine::mesh::Mesh, f32, u32, u32) overload

Source

fn build_box( self, length: impl Into<f32>, width: impl Into<f32>, height: impl Into<f32>, ) -> Mesh

BuildBox(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32) overload

Source

fn build_cone( self, height: impl Into<f32>, top_radius: impl Into<f32>, bottom_radius: impl Into<f32>, nb_sides: impl Into<i32>, ) -> Mesh

BuildCone(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32, i32) overload

Source

fn build_pyramid( self, width: impl Into<f32>, height: impl Into<f32>, depth: impl Into<f32>, ) -> Mesh

BuildPyramid(*mutcrate::unity_engine::mesh::Mesh, f32, f32, f32) overload

Source

fn build_shapes(self)

BuildShapes() overload

Source

fn rebuild_resources(self)

RebuildResources() overload

Source

fn request_sphere_mesh(self) -> Mesh

RequestSphereMesh() overload

Source

fn request_box_mesh(self) -> Mesh

RequestBoxMesh() overload

Source

fn request_cone_mesh(self) -> Mesh

RequestConeMesh() overload

Source

fn request_pyramid_mesh(self) -> Mesh

RequestPyramidMesh() overload

Source

fn ctor(self)

.ctor() 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: IDebugShapes> IDebugShapesMethods for __T

Available on crate feature unity_engine-rendering-debugshapes only.