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

1.9 KiB

Volume Overrides

Volume Overrides are structures which contain values that override the default properties in a Volume Profile. The Universal Render Pipeline (URP) uses these Profiles within the Volume framework. For example, you could use a Volume Override in your Unity Project to darken the outside edges of yours Scene.

Vignette is an example of a Volume Override.

Each Volume Override property has a checkbox on its left. Enable the checkbox to make that property editable. This also tells URP to use that property for this Volume component rather than the default value. If you disable the checkbox, URP ignores the property you set and uses the Volume’s default value for that property instead.

Override checkboxes allow you to override as many or as few values on a Volume component as you want. To quickly toggle all the properties between editable or not, click the All or None shortcuts in the top left of the Volume Override respectively.

Using Volume Overrides

To render both a global vignette and a local vignette in a certain area of your Scene:

  1. Create a global Volume (menu: GameObject > Volume > Global Volume).
  2. Click the New button next to the Profile property to add a new Volume Profile to the Volume.
  3. Select Add Override > Vignette, and leave it with the default settings.
  4. Create a local Volume. To add a Local Volume with a box boundary, select GameObject > Volume > Box Volume.
  5. Select Add Override > Vignette.Then, in the Vignette Inspector, override the properties them with your preferred values.

Now, whenever your Camera is within the bounds of the local Volume's Collider, URP uses the Vignette values from that Volume. Whenever your Camera is outside the bounds of the local Volume's Collider, URP uses the Vignette values from the global Volume