![stacks on main stacks on main](https://photo.mybuilder.com/2_thumb/451319_0ab8749cca.jpg)
![stacks on main stacks on main](http://www.hometips.com/wp-content/uploads/2012/06/plumbing-remodel-soil-stack-A.jpg)
Adding the same Overlay Camera to multiple stacks You can reorder a Camera Stack in a script by directly manipulating the cameraStack property of the Base Camera's Universal Additional Camera Data component. The Base Camera renders the base layer of the Camera Stack, and the Overlay Cameras in the stack render on top of this in the order that they are listed, from top to bottom. Use the handles next to the names of the Overlay Cameras to reorder the list of Overlay Cameras.In the Camera Inspector, scroll to the Stack section.Select the Base Camera in the Camera Stack.For instructions, see Adding a Camera to a Camera Stack. Create a Camera Stack that contains more than one Overlay Camera.You can remove a Camera from a Camera Stack in a script by directly manipulating the cameraStack property of the Base Camera's Universal Additional Camera Data component, like this: var cameraData = camera.GetUniversalAdditionalCameraData() Ĭ(myOverla圜amera) Ĭhanging the order of Cameras in a Camera Stack The Overlay Camera remains in the Scene, but is no longer part of the Camera Stack. In the Camera Inspector, scroll to the Stack section, click the name of the Overlay Camera you want to remove, and then click the minus (-) button.Create a Camera Stack that contains at least one Overlay Camera.You can add a Camera to a Camera Stack in a script by directly manipulating the cameraStack property of the Base Camera's Universal Additional Camera Data component, like this: var cameraData = camera.GetUniversalAdditionalCameraData() Ĭ(myOverla圜amera) Unity renders the Overlay Camera's output on top of the Base Camera's output. The Overlay Camera is now part of the Base Camera's Camera Stack.
#STACKS ON MAIN PLUS#
In the Camera Inspector, scroll to the Stack section, click the plus (+) button, and click the name of the Overlay Camera.
![stacks on main stacks on main](https://s3.amazonaws.com/static.sidebox.com/DA298B51-6A82-47A6-BD4F-6BDB116D7455/166915.jpg)
In the Universal Render Pipeline (URP), you use Camera Stacking to layer the output of multiple Cameras and create a single combined output.