Skip to main content

ITerrainMeshMethods

Trait ITerrainMeshMethods 

Source
pub trait ITerrainMeshMethods: ITerrainMesh {
    // Provided methods
    fn ctor(self) { ... }
    fn add_mesh(
        self,
        x: impl Into<i32>,
        z: impl Into<i32>,
        color: impl Into<Color>,
        pos: impl Into<Vector2>,
        size: impl Into<Vector2>,
    ) { ... }
    fn get_position(self, index: impl Into<i32>) -> Vector2 { ... }
    fn update(
        self,
        terrain: impl Into<MapTerrain>,
        show_layer: impl Into<bool>,
        show_overlap: impl Into<bool>,
    ) { ... }
    fn update_2(self) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn add_mesh( self, x: impl Into<i32>, z: impl Into<i32>, color: impl Into<Color>, pos: impl Into<Vector2>, size: impl Into<Vector2>, )

AddMesh(i32, i32, crate::unity_engine::color::Color, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2) overload

Source

fn get_position(self, index: impl Into<i32>) -> Vector2

GetPosition(i32) overload

Source

fn update( self, terrain: impl Into<MapTerrain>, show_layer: impl Into<bool>, show_overlap: impl Into<bool>, )

Update(crate::app::mapterrain::MapTerrain, bool, bool) overload

Source

fn update_2(self)

Update() 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: ITerrainMesh> ITerrainMeshMethods for __T

Available on crate feature app-terrainmesh only.