Sharing project items

When you need to share project items with another project, Kanzi Studio lets you export the selected item and its dependencies to an empty project archive, and import it into another project. You can also copy project items and their dependencies directly to the filesystem of another project.

Kanzi provides these options for bringing content from other projects:

Exporting and importing project items

  • To export project items:

    1. Select the items you want to export.

    2. Right click, and select Export Selected Project Item(s).

    3. Kanzi Studio creates an archive which contains the selected items, and the items they reference.

      ../../_images/export-project-items.png
  • To import project items:

    1. Select File > Import > Import Project Item(s).

    2. Select the archive that you want to import.

Note

The export is a zip archive. You can also extract the items manually to the filesystem of another project.

Copying kzm files

You can also share project items by copying kzm files manually. To use a project item in another project, copy the kzm file of that project item into the same directory of another project. When a project item has child items or refers to other items, copy all child and referenced items too.

Note

Only copy kzm files from another project when both are from the same Kanzi Studio version.

For example:

  • To copy a Render Pass Prefab:

    1. In File Explorer, in the project directory open the Render Pass Prefabs directory of the first project.

    2. Copy Example Render Pass directory and Example Render Pass.kzm render pass prefab file.

    3. Paste the directory and kzm file to the Render Pass Prefabs directory of the second project.

      ../../_images/copy-renderpass-kzm.png
  • To copy a Material:

    1. In File Explorer, copy FirstProject/Materials/ExampleMaterial.kzm to the SecondProject/Materials/ directory.

      ../../_images/copy-material-kzm.png
    2. Copy the material type FirstProject/Material Types/ExampleMaterialType.kzm to the SecondProject/Material Types/ directory.

      ../../_images/copy-material-type-kzm.png
    3. Copy the shaders and the corresponding kzm files from the FirstProject/Shaders/ directory to the SecondProject/Shaders/ directory.

      ../../_images/copy-shader-kzm.png

See also

Merging projects

Importing projects

Asset packages