NavMeshBuildDebugSettings

Struct NavMeshBuildDebugSettings 

Source
pub struct NavMeshBuildDebugSettings {
    pub m_Flags: u8,
}
Expand description

NavMeshBuildDebugSettings is a sub class of the Unity engine since version 2017.2.0b2. Exert from Unity’s scripting documentation: Specify which of the temporary data generated while building the NavMesh should be retained in memory after the process has completed. It is possible to collect and display in the Editor the intermediate data used in the process of building the navigation mesh using the NavMeshBuilder. This can help with diagnosing those situations when the resulting NavMesh isn’t of the expected shape. Input Geometry, Regions, Polygonal Mesh Detail and Raw Contours shown after building the NavMesh with debug optionsThe process for computing a NavMesh comprises of several sequential steps: i. decomposing the Scene’s terrain and meshes into triangles; ii. rasterizing the input triangles into a 3D voxel representation and finding ledges; iii. partitioning the voxels lying at the surface into simpler horizontal regions; iv. finding a tight-fitting contour for each of these regions; v. simplifying the contours into polygonal shapes; vi. creating a mesh of convex polygons based on all the contours combined; vii. refining the polygonal mesh into a triangulated version that approximates better the Scene’s original geometry.Through the use of the debug functionality the results from each stage can be captured and displayed separately, whereas normally they would get discarded when the NavMesh construction is completed.Depending on the Scene composition this debug data can be considerably large in size. It is stored in memory in a compressed manner but gets further expanded when being displayed.Notes:

Fields§

§m_Flags: u8

Specify which types of debug data to collect when building the NavMesh.

Trait Implementations§

Source§

impl Debug for NavMeshBuildDebugSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NavMeshBuildDebugSettings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for NavMeshBuildDebugSettings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,