You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.core/Documentation~/User-Render-Requests.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ The request is processed sequentially in your script, so there's no callback inv
8
8
9
9
`RenderPipeline.StandardRequest` renders the following:
10
10
11
-
- A full stack of cameras in the [Universal Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/index.html) (URP).
12
-
- A single camera in the [High Definition Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest/index.html) (HDRP).
11
+
* A full stack of cameras in the [Universal Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/index.html) (URP).
12
+
* A single camera in the [High Definition Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest/index.html) (HDRP).
13
13
14
14
The following code sample gets the output of the scriptable render pipeline when you select a GUI button. Attach the script to a camera and select **Enter Play Mode**.
15
15
16
-
```
16
+
```c#
17
17
usingSystem.Collections;
18
18
usingSystem.Collections.Generic;
19
19
usingUnityEngine;
@@ -91,5 +91,4 @@ public class StandardRenderRequest : MonoBehaviour
91
91
92
92
## Other useful information
93
93
94
-
- On [Universal Render Pipeline (URP)](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/User-Render-Requests.html).
95
-
94
+
* On [Universal Render Pipeline (URP)](https://docs.unity3d.com/Packages/[email protected]/manual/User-Render-Requests.html).
For a general documentation see the [Core Package](https://docs.unity3d.com/Packages/com.unity.render-pipelines.core@latest/User-Render-Requests.html) about Render Requests.
6
+
To trigger a camera to render to a render texture outside of the Universal Render Pipeline (URP) rendering loop, use the `SubmitRenderRequest` API in a C# script.
7
7
8
-
## Use UniversalRenderPipeline.SingleCameraRequest
8
+
This example shows how to use render requests and callbacks to monitor the progress of these requests. You can see the full code sample in the [Example code](#example-code) section.
9
9
10
-
`UniversalRenderPipeline.SingleCameraRequest` renders a single camera, without taking into account the full stack of cameras.
10
+
## Render a single camera from a camera stack
11
11
12
-
You can still hook into callbacks from [RenderPipelineManager](https://docs.unity3d.com/ScriptReference/Rendering.RenderPipelineManager.html).
12
+
To render a single camera without taking into account the full stack of cameras, use the `UniversalRenderPipeline.SingleCameraRequest` API. Follow these steps:
13
13
14
-
The following code sample shows that you can hook into [RenderPipelineManager.endContextRendering](https://docs.unity3d.com/ScriptReference/Rendering.RenderPipelineManager-endContextRendering.html)`UniversalRenderPipeline.SingleCameraRequest`
14
+
1. Create a C# script with the name `SingleCameraRenderRequestExample` and add the `using` statements shown below.
15
15
16
-
To try out this example:
16
+
```c#
17
+
usingSystem.Collections;
18
+
usingUnityEngine;
19
+
usingUnityEngine.Rendering;
20
+
usingUnityEngine.Rendering.Universal;
17
21
18
-
- Attach the script to a **GameObject** in the **Scene**.
19
-
- Configure the **cams** and **rts**.
20
-
- Set **useSingleCameraRequestValues** to true or false depending on which type of render request you want to use.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.universal/Documentation~/cameras-advanced.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ You can use Unity's [Frame Debugger](https://docs.unity3d.com/Manual/FrameDebugg
80
80
81
81
You can use a render request in a C# script to trigger a camera to render to a render texture, outside the URP rendering loop. You can use two types of render request in URP, which do the following:
82
82
83
-
*[RenderPipeline.StandardRequest](xref:Rendering.RenderPipeline.StandardRequest) renders the output of a full stack of cameras.
83
+
*[RenderPipeline.StandardRequest](https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Rendering.RenderPipeline.StandardRequest.html) renders the output of a full stack of cameras.
84
84
*[UniversalRenderPipeline.SingleCameraRequest](https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.Rendering.Universal.UniversalRenderPipeline.SingleCameraRequest.html) renders the output of a single camera.
85
85
86
-
For more information on how to use render requests, refer to [Render Requests](https://docs.unity3d.com/Packages/[email protected]/manual/User-Render-Requests.html).
86
+
For more information on how to use render requests, refer to [Render a camera outside the rendering loop](User-Render-Requests.md).
0 commit comments