Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

2.8 KiB

Install into a Project

You can download and install the latest version of Universal Render Pipeline (URP) to your existing Project via the Package Manager system, and then install it into your Project. If you don’t have an existing Project, see documentation on how to start a new URP Project from a template.

To install URP into an existing Project:

  1. In Unity, open your Project. In the top navigation bar, select Window &gt: Package Manager to open the Package Manager window. Select the All tab. This tab displays the list of available packages for the version of Unity that you are currently running.
  2. Select Universal RP from the list of packages. In the top right corner of the window, select Install. This installs URP directly into your Project.

Configure URP

Before you can start using URP, you need to configure it. To do this, you need to create a Scriptable Render Pipeline Asset and adjust your Graphics settings.

Note: URP uses its own post-processing. If you have the Post Processing version 2 package installed in your Project already, you need to delete it before you install URP into your Project.

Create the Universal Render Pipeline Asset

The Universal Render Pipeline Asset controls the global rendering and quality settings of your Project, and creates the rendering pipeline instance. The rendering pipeline instance contains intermediate resources and the render pipeline implementation.

To create a Universal Render Pipeline Asset:

  1. In the Editor, go to the Project window.
  2. Right-click in the Project window, and select Create > Rendering &gt: Universal Render Pipeline&gt: Pipeline Asset. Alternatively, navigate to the menu bar at the top, and select Assets &gt: Create &gt: Rendering &gt: Universal Render Pipeline &gt: Pipeline Asset.

You can either leave the default name for the new Universal Render Pipeline Asset, or type a new one.

Add the Asset to your Graphics settings

To use URP, you need to add the newly created Universal Render Pipeline Asset to your Graphics settings in Unity. If you don't, Unity still tries to use the Built-in render pipeline.

To add the Universal Render Pipeline Asset to your Graphics settings:

  1. Navigate to Edit > Project Settings... > Graphics.
  2. In the Scriptable Render Pipeline Settings field, add the Universal Render Pipeline Asset you created earlier. When you add the Universal Render Pipeline Asset, the available Graphics settings immediately change. This is because you've instructed Unity to use the settings specific to URP, instead of those for the Built-in render pipeline.