unreal.PVMaterialSettings¶
- class unreal.PVMaterialSettings¶
Bases:
StructBasePVMaterial Settings
C++ Source:
Plugin: ProceduralVegetationEditor
Module: ProceduralVegetation
File: PVMaterialSettings.h
Editor Properties: (see get_editor_property/set_editor_property)
distribution_method(MaterialDistributionMethod): [Read-Write] Repeat or Fit materials across generations.Repeat: cycle materials when generations exceed material count. Fit: stretch N materials across all generations.
generation_offset(int32): [Read-Write] Shifts which branch generation the material targets.Adjusts the generation index used for material assignment. For example, an offset of 1 targets branches one level above the default (trunk → gen0, first branches → gen1, etc.).
material_mode(UVMaterialMode): [Read-Write] Driver for material selection: Generation, Age, or Radius.Generation: by branch hierarchy. Age: by segment age. Radius: by branch thickness.
material_setups(Array[TrunkGenerationMaterialSetup]): [Read-Write] List of materials applied to the mesh.Defines the collection of materials that can be distributed by generation, age, or radius. Enables complex setups (e.g., bark, moss, twig materials by region).