Skip to content

Using Prefabs

Prefabs can be easily shared and utilized through Prefab Packages. This section will guide you on how to install Prefab Packages and how to add Prefabs to your Voxel Scenes.

Installing a Prefab Package

To install a Prefab Package, follow these steps:

  1. Navigate to the Prefab Packages Tab tab in the Prefabs Panel.
  2. Click on the Install Packages button. A file selection dialog will appear.
  3. Select the packages you wish to install.

This action will copy the selected packages into the Shared folder.

Important Note

If you manually copy packages into the Shared folder, changes will not be immediately reflected in the user interface. You will need to restart Foxel for the updates to take effect.

Activating a Prefab Package

Once the package is installed, you can activate it by following these steps:

  1. Go to the Prefabs Tab.
  2. Use the dropdown menu to select the installed package.

This will refresh the Prefab list, displaying all the Prefabs contained within the selected package.

Adding a Prefab to a Voxel Scene

To add a Prefab to your Voxel Scene, simply drag and drop the desired Prefab from the list onto the Scene View. This action will create a new Voxel Layer that contains the contents of the Prefab, allowing you to integrate it seamlessly into your project.