pub struct TreePrototype {
pub bendFactor: f32,
pub prefab: PPtr,
pub navMeshLod: Option<i32>,
}Expand description
TreePrototype is a sub class of the Unity engine since version 3.4.0. Exert from Unity’s scripting documentation: Simple class that contains a pointer to a tree prototype. This class is used by the TerrainData gameObject.
Fields§
§bendFactor: f32Bend factor of the tree prototype.
prefab: PPtrRetrieves the actual GameObject used by the tree.
PPtr<GameObject>: (3.4.0 - 2022.3.2f1)
The LOD index of a Tree LODGroup that Unity uses to generate a NavMesh. It uses this value only for Trees with a LODGroup, and ignores this value for regular Trees. i32: (2020.2.0b1 - 2022.3.2f1)
Trait Implementations§
Source§impl Debug for TreePrototype
impl Debug for TreePrototype
Source§impl<'de> Deserialize<'de> for TreePrototype
impl<'de> Deserialize<'de> for TreePrototype
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 TreePrototype
impl RefUnwindSafe for TreePrototype
impl Send for TreePrototype
impl Sync for TreePrototype
impl Unpin for TreePrototype
impl UnwindSafe for TreePrototype
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