unreal.PVMaterialSettings

class unreal.PVMaterialSettings

Bases: StructBase

PVMaterial Settings

C++ Source:

  • Plugin: ProceduralVegetationEditor

  • Module: ProceduralVegetation

  • File: PVMaterialSettings.h

Editor Properties: (see get_editor_property/set_editor_property)

  • distribution_method (MaterialDistributionMethod): [Read-Write] How materials are selected based on number of materials available vs generations

    If number of generations exceed the number of materials, Fit will fit all generations between available materials. Repeat will apply the last material entry to all generations exceeding number of materials

  • 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] Distributes materials by generation, age, or radius.

    Selects the logic for assigning materials: Generation (branch hierarchy), Age (segment age), or Radius (thickness). Useful for realistic variation across the plant.

  • 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).