Skip to main content
Version: 5.x
Supported on
Snapchat
Spectacles
Camera Kit

Importing and Exporting Resources

This guide details how to import resources into your Lens Studio project and export resources, including hierarchies from the scene.

Add New Resources

In the Asset Browser panel, the + button allows you to add new resources to your Lens Studio project. After clicking on the + button, select the Import Asset option to add in your own custom resources. Otherwise, select from Lens Studio's built-in resources.

Drag and Drop

For convenience, you can also drag and drop a resource from your computer into the Asset Browser panel. It will automatically recognize the resource type and add it to your resources.

File -> Import

You can also import resources into Lens Studio by right clicking on the Asset Browser panel and selecting Import Asset.

The Assets Folder

Every Lens Studio project has a Assets folder which exists inside the saved project. This Assets folder contains every resource that has been imported into the project. Once imported, you are able to make changes to the assets in the public folder directly, Lens Studio will automatically recognize the change and update the resources accordingly.

Learn more in the Project Structure guide.

You can directly add, delete or move resources around in the Assets Folder and those changes will propagate to the Asset Browser.

Do not change the contents of the Cache folder as it can cause problems within your project.

Exporting from the Scene Hierarchy

Any object in the Scene Hierarchy panel can be exported by right clicking the object and selecting Export. This will export the object and all of its children to an .lspkg file. Additionally, it will export all dependent resources.

To import an .lspkg file, right click in the Scene Hierarchy panel and select Import object. This will import the entire exported object hierarchy. Additionally, it will import all dependent resources into your Asset Browser panel.

Exporting from the Assets Browser

Any asset in the asset browser panel can be exported by right clicking the asset and selecting Export. This will export the object and all of its children to an .lspkg file. Additionally, it will export all dependent resources.

For single Script Assets, you will be able to export them as custom components. More details can be found here.

Was this page helpful?
Yes
No