Skip to main content

ITerrainHeightMapMethods

Trait ITerrainHeightMapMethods 

Source
pub trait ITerrainHeightMapMethods: ITerrainHeightMap {
    // Provided methods
    fn ctor(self) { ... }
    fn ctor_2(self, terrain: impl Into<Terrain>) { ... }
    fn ctor_3(self, data: impl Into<TerrainData>) { ... }
    fn read_data(self, data: impl Into<TerrainData>) { ... }
    fn write_data(self, data: impl Into<TerrainData>) { ... }
    fn fill_height(self, height: impl Into<f32>) { ... }
    fn move_height(self, height: impl Into<f32>) { ... }
    fn get_item(self, x: impl Into<i32>, y: impl Into<i32>) -> f32 { ... }
    fn set_item(
        self,
        x: impl Into<i32>,
        y: impl Into<i32>,
        value: impl Into<f32>,
    ) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, terrain: impl Into<Terrain>)

.ctor(crate::unity_engine::terrain::Terrain) overload

Source

fn ctor_3(self, data: impl Into<TerrainData>)

.ctor(crate::unity_engine::terraindata::TerrainData) overload

Source

fn read_data(self, data: impl Into<TerrainData>)

ReadData(crate::unity_engine::terraindata::TerrainData) overload

Source

fn write_data(self, data: impl Into<TerrainData>)

WriteData(crate::unity_engine::terraindata::TerrainData) overload

Source

fn fill_height(self, height: impl Into<f32>)

FillHeight(f32) overload

Source

fn move_height(self, height: impl Into<f32>)

MoveHeight(f32) overload

Source

fn get_item(self, x: impl Into<i32>, y: impl Into<i32>) -> f32

get_Item(i32, i32) overload

Source

fn set_item(self, x: impl Into<i32>, y: impl Into<i32>, value: impl Into<f32>)

set_Item(i32, i32, f32) 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: ITerrainHeightMap> ITerrainHeightMapMethods for __T

Available on crate feature app-terrainheightmap only.