Extensions Overview

Back


Extensions are additional tools or systems that extend the core multi-scene system with additional features. These normally have dependencies and are therefore provided as a separate package in the asset to not cause conflicts when importing the asset. Below are all the current extensions and what they do:

URP Camera Extension


✅ Assemblies


All the code this extension is under the following assemblies:

CarterGames.MultiScene.Extensions.URP.Runtime

CarterGames.MultiScene.Extensions.URP.Editor

For accessing the runtime code of the asset.

For accessing the editor code of the asset.


🚩 Namespaces


All code for this extension is under the following namespace(s):

// Editor Logic
CarterGames.Experimental.MultiScene.URP.Editor

// Runtime Logic
CarterGames.Experimental.MultiScene.URP

🟪 Usage


The URP extension is primarily for allowing camera stacking between scenes as Unity doesn’t support this when you have cameras in a separate scene in the inspector. This extension provides a solution to this and it may support other features in the future.

🟣 Camera Stacking


The camera stacking setup has 2 scripts, the base camera & overlay camera scripts. It just uses a simple Id field to match the cameras. At runtime it will automatically stack the cameras, but there is also a button to stack them in the editor should you wish. To set the system up start by adding the base camera script to your base camera and give it an id like seen below:

Then just add the overlay camera script to any overlay camera’s you want to add to this base camera and give it the same id as the base camera, like so:

That’s it, your all set. Th see the stacking in the editor just press the add overlay in editor button on the base script and the editor will update.