> For the complete documentation index, see [llms.txt](https://teogames.gitbook.io/dynamic-mesh-combiner/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teogames.gitbook.io/dynamic-mesh-combiner/quick-start.md).

# Quick Start

Dynamic Mesh Combined allows you to easily combine meshes that adds to the scene dynamically. The main idea of plugin is simple have parent object with [MC Mesh Combiner](/dynamic-mesh-combiner/components/combiner/mc-mesh-combiner.md) Component and then you can add meshes with [MC Combinable](/dynamic-mesh-combiner/components/mc-combinable.md) as child objects. All those objects will be automatically combined into single mesh.

## Dependencies

The current implementation has dependencies on the following packages:

1. `com.unity.shadergraph`: This package is required for rendering baked materials and is an essential part of the Universal Render Pipeline (URP) integration. Can be skiped if you don't want to bake materials, or use current implementation. See [Bake Materials](/dynamic-mesh-combiner/components/bake-materials.md)

Additionally, Unity will prompt you to install the following dependencies automatically when you import the package:

2. `com.unity.memoryprofiler`: This package is used for memory profiling purposes. It provides tools and functionality to analyze and optimize memory usage within the application.
3. `com.unity.profiling.core`: This package is used for performance profiling and analysis. It offers features to measure and improve the performance of your application.

Please ensure that you allow Unity to install these dependencies when prompted during the package import process.

## Setup

Basic setup looks like that:

<figure><img src="https://i.codecks.io/w:500,h:182/https%3A%2F%2Fuploads.codecks.io%2Faccount-ce31c638-1883-11eb-88bf-8fa60dd3963b%2F2023%2F8MnD5etnAs%2Fimage.png" alt=""><figcaption></figcaption></figure>

Where container should have component [MC Mesh Combiner](/dynamic-mesh-combiner/components/combiner/mc-mesh-combiner.md)

<figure><img src="/files/I2mVmd0VaroVbjNNebGz" alt="" width="249"><figcaption></figcaption></figure>

Each mesh should contain [MC Combinable](/dynamic-mesh-combiner/components/mc-combinable.md)component:

<figure><img src="/files/We2MsSja1uI8BJOjCPz6" alt="" width="248"><figcaption></figcaption></figure>

\
That simple setup will bake all 3 meshes into single one and render it on the scene.\
You can add or remove any amount of meshes in runtime and they will be automatically baked.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://teogames.gitbook.io/dynamic-mesh-combiner/quick-start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
