[1.20] Dynamic Mesh Combiner
  • Quick Start
  • Components
    • Usage Tips
    • Combiner
      • MC Chunk Combiner
      • MC Mesh Combiner
    • MC Combinable
      • MC LOD Combinable
    • MC Extractor
    • Bake Materials
      • NoTextureMaterialBaker
      • TextureBaker
    • Profile
    • Compatible Assets
      • Photon
      • Outlines & Highlights
Powered by GitBook
On this page
  1. Components

Combiner

PreviousUsage TipsNextMC Chunk Combiner

Last updated 1 year ago

The Combiner is a core component that should be added to the object you want to combine. All nested child objects with MC Combinable that match the specified will be automatically baked.

For detailed information on each specific implementation of the combiner, please refer to the documentation. The documentation will provide in-depth details and instructions for utilizing the combiner in different scenarios.

  • MC Mesh Combiner

  • MC Chunk Combiner

Custom combiners

You have the flexibility to create your own custom combiners to tailor the combining process to your specific needs. To achieve this, you need to create a new component that inherits from the AbstractMeshCombiner class. Within your custom combiner component, you must implement two abstract functions:

  1. Include(Combinable combinable): This function is responsible for including a specific Combinable object in the combining process. Within this function, you can define the necessary logic to combine the Combinable into the combined result.

  2. Exclude(Combinable combinable): This function is used to exclude a Combinable object from the combining process. If the function is called for a specific Combinable and the necessary conditions are met, you can implement the logic to exclude that Combinable from the combining process.

By creating custom combiners and implementing these void functions, you have the flexibility to design a combining process that fits your specific requirements. You can define the logic for including or excluding Combinable objects and specify the necessary combining operations within each function.

Keys