unreal.MeshNaniteSettings

class unreal.MeshNaniteSettings(enabled=False, position_precision=- 2147483648, keep_percent_triangles=1.0, trim_relative_error=0.0, fallback_percent_triangles=1.0, fallback_relative_error=1.0)

Bases: unreal.StructBase

Settings applied when building Nanite data.

C++ Source:

  • Module: Engine

  • File: EngineTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • enabled (bool): [Read-Write] Enabled: If true, Nanite data will be generated.

  • fallback_percent_triangles (float): [Read-Write] Fallback Percent Triangles: Percentage of triangles to keep from source mesh for fallback. 1.0 = no reduction, 0.0 = no triangles.

  • fallback_relative_error (float): [Read-Write] Fallback Relative Error: Reduce until at least this amount of error is reached relative to size of the mesh

  • keep_percent_triangles (float): [Read-Write] Keep Percent Triangles: Percentage of triangles to keep from source mesh. 1.0 = no reduction, 0.0 = no triangles.

  • position_precision (int32): [Read-Write] Position Precision: Position Precision. Step size is 2^(-PositionPrecision) cm. MIN_int32 is auto.

  • target_minimum_residency_in_kb (uint32): [Read-Write] Target Minimum Residency in KB: How much of the resource should always be resident (In KB). Approximate due to paging. 0: Minimum size (single page). MAX_uint32: Entire mesh.

  • trim_relative_error (float): [Read-Write] Trim Relative Error: Reduce until at least this amount of error is reached relative to size of the mesh

property enabled

[Read-Write] Enabled: If true, Nanite data will be generated.

Type

(bool)

property fallback_percent_triangles

[Read-Write] Fallback Percent Triangles: Percentage of triangles to keep from source mesh for fallback. 1.0 = no reduction, 0.0 = no triangles.

Type

(float)

property fallback_relative_error

[Read-Write] Fallback Relative Error: Reduce until at least this amount of error is reached relative to size of the mesh

Type

(float)

property keep_percent_triangles

[Read-Write] Keep Percent Triangles: Percentage of triangles to keep from source mesh. 1.0 = no reduction, 0.0 = no triangles.

Type

(float)

property position_precision

[Read-Write] Position Precision: Position Precision. Step size is 2^(-PositionPrecision) cm. MIN_int32 is auto.

Type

(int32)

property trim_relative_error

[Read-Write] Trim Relative Error: Reduce until at least this amount of error is reached relative to size of the mesh

Type

(float)