pub struct TerrainData {
pub m_DetailDatabase: DetailDatabase,
pub m_Heightmap: Heightmap,
pub m_Name: String,
pub m_SplatDatabase: SplatDatabase,
pub m_PreloadShaders: Option<Vec<PPtr>>,
}Expand description
TerrainData is a class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: The TerrainData class stores heightmaps, detail mesh positions, tree instances, and terrain texture alpha maps. The Terrain component links to the terrain data and renders it.
Fields§
§m_DetailDatabase: DetailDatabase§m_Heightmap: Heightmap§m_Name: StringThe name of the object.
m_SplatDatabase: SplatDatabase§m_PreloadShaders: Option<Vec<PPtr>>Vec<PPtr<Shader>>: (2018.4.14f1 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for TerrainData
impl Debug for TerrainData
Source§impl<'de> Deserialize<'de> for TerrainData
impl<'de> Deserialize<'de> for TerrainData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TerrainData
impl RefUnwindSafe for TerrainData
impl Send for TerrainData
impl Sync for TerrainData
impl Unpin for TerrainData
impl UnwindSafe for TerrainData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more