First steps

This is a Unity package so you’ll need a compatible version of the Unity Engine. The package was created with Unity 2023 but later versions and some earlier versions should work aswell.

The package is made to work with the Universal and Built-In render pipelines.

If you run into any issues please reach out via [email protected].

Download the .unitypackage file from the Unity Asset Store or Fab.com.

Drag the downloaded file into your projects Assets directory or go to Assets > Import Package > Custom Package.

This will open an import dialogue where you can select which parts of the package you want to import. If you already know how to use the tool you can safely uncheck the “Demo” directory. Everything else is needed for the tool to function properly.

The tool should now be ready to use.

Using the script

Prerequisites

To create a texture of the scene mapped to a meshes UVs you’ll need three things.

  1. An instance of the ProjectSceneViewToUV class to do the projection.
  2. A camera to capture the scene from.
  3. A renderer that is attached to the mesh you want to map the scene view onto.

image.png

Depending on your usecase you can simply create the projector prior to the projection and discard it afterwards or keep it around for later projections.

image.png

If you want to capture the scene from the viewpoint of your main camera you don’t have to specify a camera as the projector will default to the Camera.main.

The projector can handle both MeshRenderer and SkinnedMeshRenderer.

Projection