Advanced Guides
Dive deeper into complex features and techniques with our advanced guides.
Last updated
Dive deeper into complex features and techniques with our advanced guides.
Last updated
New tutorials coming soon for this page! If you notice anything missing or find things confusing, reach out to us on Discord or contact support for assistance.
This condition prevents placing a Building Part if there's a collision with any of the different objects.
You can enable this condition in the "Conditions Settings" section of your Building Part :
The condition is determined by the "Bounds" model of your Building Part, located in the 'Model Settings' section. Ensure they are set up correctly. These are generated automatically when you add a new Building Part, but you can later adjust their size and position to precisely fit your requirements.
When you turn on the condition and your Building Part is in the Unity Editor scene, you can use the Gizmos button at the top-right of the editor window. This shows you where collisions are happening in real-time, giving you instant updates on what's going on with your object.
In the Building Collision Condition, remember to tick the "Show Gizmos" option. This lets you visualize collisions as they happen in your scene. You can then move your objects around and see how they interact with other objects by trying to make them collide.
It is important that the layer you have defined in your Building Collision Condition matches the one on which you intend to detect the collision.
Now that the detection is active, you can choose whether you want collisions to occur. By default, collisions with other objects are disabled.
If you want the Building Part colliding a specific surface to be placed, you'll need to check the "Require Building Surfaces" field. Make sure the "Bounds" hit the desired surface during the preview mode, and define your surfaces. You'll find instructions on how to define one further down the page.
If you want placement to occur only upon contact with another Building Part, you need to check "Require Building Part" and, as mentioned before, ensure that it collides with another Building Part.
For now, it's not possible to choose a specific type of Building Part to allow placement only on it, but this feature will be available in a future update.
Here are some additional explanations for each field that you will find in this condition :
In coming...
In coming...
The Building Linkable Surface component allows you to attach your buildings to a predefined surface in your scene. This means the placed building will be linked to the transform and will move accordingly.
You can add the component to the object you want to attach your Building Parts to during runtime. Here's an example below. You need to define a detection bounds, which will detect the Building Parts placed within it and then link them to the transform.
Here is an example of what it can look like during runtime: