> For the complete documentation index, see [llms.txt](https://hiveminddocs.gitbook.io/hivemind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/using-your-own-meshes.md).

# Using your own Meshes

To set up your own meshes as buildable objects in the **Ultimate Building System**, follow these simple steps:

## **Open the Mesh**

Open the mesh you want to use in the Unreal Engine editor.

## **Add Sockets**

Add the necessary sockets to your mesh that will act as snapping points during the building process.

## **Rename the Sockets**

Rename each socket to include the **Socket Name** from the **Building System Project Settings**. By default, this is set to `P_Socket`.\
For example, you can name a group of sockets:

* `P_Socket_Foundation_Forward`
* `P_Socket_Foundation_Back`
* `P_Socket_Foundation_Left`
* `P_Socket_Foundation_Right`

{% hint style="info" %}
Ensure that the socket name always includes the `"P_Socket"` portion or the custom name you have defined in your **Project Settings**.
{% endhint %}

## **Align the Sockets' X Axis**

Make sure each socket’s X Axis is pointing in the direction you want it to snap:

* For snapping between foundations, the X Axis should point **away from the foundation**.
* For snapping a wall on top of a foundation, the X Axis should point **upwards**, towards the top of the foundation.

![Foundation Mesh with Sockets set up for usage with UBS](/files/vEJOJRFcL2wqw9gLPOoz)

By following these steps, your custom meshes will be ready to integrate into the building system and snap together correctly.


---

# 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, and the optional `goal` query parameter:

```
GET https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/using-your-own-meshes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
