Skip to main content

ITerrainMethods

Trait ITerrainMethods 

Source
pub trait ITerrainMethods: ITerrain {
    // Provided methods
    fn get_terrain_data(self) -> TerrainData { ... }
    fn get_lightmap_index(self) -> i32 { ... }
    fn get_lightmap_scale_offset(self) -> Vector4 { ... }
    fn get_allow_auto_connect(self) -> bool { ... }
    fn get_grouping_id(self) -> i32 { ... }
    fn set_neighbors(
        self,
        left: impl Into<Terrain>,
        top: impl Into<Terrain>,
        right: impl Into<Terrain>,
        bottom: impl Into<Terrain>,
    ) { ... }
    fn ctor(self) { ... }
    fn get_lightmap_scale_offset_injected(self) -> Vector4 { ... }
}

Provided Methods§

Source

fn get_terrain_data(self) -> TerrainData

get_terrainData() overload

Source

fn get_lightmap_index(self) -> i32

get_lightmapIndex() overload

Source

fn get_lightmap_scale_offset(self) -> Vector4

get_lightmapScaleOffset() overload

Source

fn get_allow_auto_connect(self) -> bool

get_allowAutoConnect() overload

Source

fn get_grouping_id(self) -> i32

get_groupingID() overload

Source

fn set_neighbors( self, left: impl Into<Terrain>, top: impl Into<Terrain>, right: impl Into<Terrain>, bottom: impl Into<Terrain>, )

SetNeighbors(crate::unity_engine::terrain::Terrain, crate::unity_engine::terrain::Terrain, crate::unity_engine::terrain::Terrain, crate::unity_engine::terrain::Terrain) overload

Source

fn ctor(self)

.ctor() overload

Source

fn get_lightmap_scale_offset_injected(self) -> Vector4

get_lightmapScaleOffset_Injected(*mutcrate::unity_engine::vector4::Vector4) 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: ITerrain> ITerrainMethods for __T

Available on crate feature unity_engine-terrain only.