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

7.8 KiB

Frequently asked questions

This section answers some frequently asked questions about the Universal Render Pipeline (Universal RP). These questions come from the General Graphics section on our forums, from the Unity Discord channel, and from our support teams.

For information about the High Definition Render Pipeline (HDRP), please see the HDRP documentation.

Can I use Universal RP and HDRP at the same time?

No. They're both built with the Scriptable Render Pipeline (SRP), but their render paths and light models are different.

Can I convert from one pipeline to the other?

You can convert from the Built-in Unity render pipeline to Universal RP. To do so, you'll have to re-write your Assets and redo the lighting in your game or app. You can use our upgrader to upgrade Built-in Shaders to the Universal RP Shaders. For custom Shaders, you'll have to upgrade them manually.

You should not swap pipeline Assets from one pipeline to another at run time, and there's no upgrader between Universal RP and HDRP.

How do I update the Universal Render Pipeline package?

You should update via the Package Manager. In the Unity Editor, go to Unity > Window > Package Manager, and find the Universal RP package.

If you’ve added SRP code or Shader Graph manually via Github, make sure to upgrade them to the same package version as Universal RP in your manifest file.

Where has Dynamic Batching gone?

The Dynamic Batching checkbox has moved from the Player Settings to the Universal Render Pipeline Asset.

How do I enable Double Sided Global Illumination in the Editor?

In the Material Inspector, find Render Face, and select Both. This means that both sides of your geometry contribute to global illumination, because Universal RP doesn’t cull either side.

Is this render pipeline usable for desktop apps and games?

Yes. The graphics quality and performance is scalable across platforms, so you can create apps for PCs and consoles as well as mobile devices.

A certain feature from the Built-in render pipeline is not supported in Universal RP. Will Universal RP support it?

To see which features Universal RP currently supports, check the comparison table. Universal RP will not support features marked as Not Supported. If the status of a feature is left blank in the table, this means that we intend to support the feature at some point.

Does Universal RP support a Deferred Renderer?

Not yet. Our goal is to add support for an optimized deferred renderer in 2019.3.

Does Universal RP have a public roadmap?

Yes. You can check it here. You can add suggestions as well. To do so, you’ll have to enter your email address, but you won’t have to make an account.

Will Universal RP be in LTS for 2019.4?

Yes.

I’ve found a bug. How do I report it?

You can open bugs by using the bug reporter system. Universal RP bugs go through the same process as all other Unity bugs. You can also check the active list of bugs for Universal RP in the issue tracker.

I have an existing Project. How do I convert it from the Built-in render pipeline to Universal RP?

Check this upgrade guide on installing an SRP into an existing Project.

I’ve upgraded my Project from the Built-in render pipeline to Universal RP, but it’s not running faster. Why?

Universal RP and the Built-in render pipeline (RP) have different quality settings. While the Built-in RP configures many settings in different places like the Quality Settings, Graphics Settings, and Player Settings, all Universal RP settings are stored in the Universal RP Asset. The first thing to do is to check whether your Universal RP Asset settings match the settings your Built-in render pipeline Project. For example, if you disabled MSAA or HDR in your Built-in render pipeline Project, make sure they are disabled in the Universal RP Asset in your Universal RP Project. For advice on configuring Universal RP Assets, see documentation on the Universal RP Asset.

Also, make sure you are doing a fair comparison in terms of renderers. For this release, Universal RP only supports a forward renderer, so make sure your Built-in render pipeline Project is using the forward renderer as well.

If, after comparing the settings, you still experience worse performance with Universal RP, please open a bug report and attach your Project.

Universal RP doesn’t run on device X or platform Y. Is this expected?

No. Please open a bug report.

My Project takes a long time to build. Is this expected?

We are looking into how to strip Shader keywords more aggressively. You can help the Shader stripper by disabling features you don’t require for your game in the Universal RP Asset. For more information on settings that affect shader variants and build time, see the shader stripping documentation.

Is post-processing supported in Universal RP?

Some post-processing version 2 (PPv2) features are supported in Universal RP. To see which features are supported, see comparison of features in Universal RP and the Built-in render pipeline. PPv2 doesn’t support mobile VR.

We are working on many optimizations for post-processing and mobile.

I can’t set camera clear flags with Universal RP. Why?

We’ve deprecated camera clear flags in Universal RP. Instead, you can set the Background Type in the Camera Inspector. We’ve done this because the clear flags Depth Only and Don’t Care from the Built-in render pipeline has inherent performance pitfalls. The clear flags were used for camera stacking, where one camera depends on the results of a previous camera. This is bad for performance, as it executes culling multiple times and increases bandwidth. Bandwidth cost is especially important for mobile games.

For these reasons, we're working on a solution where you can add a render pass with custom camera matrices and FOV. This way, we can provide an optimized workflow instead of creating a Camera object. We plan to expose this custom render pass in a future Universal RP package.

What rendering space does Universal RP work in?

By default, Universal RP uses a linear color space while rendering. You can also use a gamma color space, which is non-linear. To do so, toggle it in the Player Settings.

How do I extend Universal RP with scriptable render pass?

To create a scriptable render pass, you have to create a ScriptableRendererFeature script. This is because the scriptable render feature is a container that can have the pass in it. To create the scriptable render feature in the Editor, click on Asset > Create > Rendering > Universal Render Pipeline > Renderer Feature.

##Why does Feature X not work in the Universal RP Asset when I use the 2D Renderer?

The 2D Renderer is an experimental feature. When it's enabled (menu: Graphics Settings > add the 2D Renderer Asset under Scriptable Render Pipeline Settings), it disables the options for 3D rendering. You can still configure the options, but they have no affect on your final product. We're working on a solution so that you can't configure them when the 2D Renderer is enabled.