unreal.MeshPartitionDefinition¶
- class unreal.MeshPartitionDefinition(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
DataAssetAsset holding shared properties and settings for all components in a MegaMesh.
MegaMeshClassVersion is used to track changes in the behavior of this class with respect to building sections. It is used, along with GatherDependencies, when determining whether existing sections are up to date, or need to be rebuilt.
It should be bumped whenever code behavior changes in a way that affects how existing sections would be built. NOTE: Changing the MegaMeshClassVersion here invalidates ALL compiled sections (they all use this class).
C++ Source:
Plugin: MeshPartition
Module: MeshPartition
File: MeshPartitionDefinition.h
Editor Properties: (see get_editor_property/set_editor_property)
channel_map(ChannelMap): [Read-Write]channel_plane_projection_fixed_normal(Vector): [Read-Write] Fixed plane normal used when ChannelPlaneProjectionNormalSource is FixedPlane. Need not be unit length; normalized at use.channel_plane_projection_normal_source(PlaneProjectionNormalSource): [Read-Write] Source of the projection-plane normal: the section’s area-weighted average triangle normal, or a fixed direction below.channel_texel_size(float): [Read-Write] Channel Texel Size controls the resolution of rasterization of the textures capturing the channel signal. It is the width of an ideal texel in world units. Default is 100 units (1 texel per meter). A higher number produces coarser channel textures. A smaller number produces more expensive channel textures.channel_uv_layout_method(ChannelCollectionUVLayoutMethod): [Read-Write] Algorithm used to unwrap section UVs when rasterizing channel textures.channel_veuv_samples_per_square_meter(float): [Read-Write] Target sample count per square meter of section surface areachannel_veuv_voxel_count(IntVector): [Read-Write] Voxel grid dimensionscompiled_section_build_variants(Array[CompiledSectionBuildVariant]): [Read-Write]default_physical_material(PhysicalMaterial): [Read-Write]material(MaterialInterface): [Read-Write]material_cache_texel_size(float): [Read-Write]modifier_type_priorities(Array[Name]): [Read-Write]per_platform_runtime_settings(PerPlatformRuntimeSettings): [Read-Write]physical_material_channels(Array[PhysicalMaterialChannel]): [Read-Write]preview_section_build_variant(CommonBuildVariant): [Read-Write]