Version: Unity 6.3 Beta (6000.3)
Language : English
Configure a 2D light
Prepare and upgrade sprites for 2D lighting in URP

Set up the 2D Renderer asset in URP

To use the Universal Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary
(URP) for 2D in your Unity project, create a project with a 2D URP asset and a 2D Universal Renderer asset.

Requirements

  • Unity Editor version 2021.2.0b1 or higher.
  • URP package version 10 or higher.

Create 2D URP rendering assets

  1. Open the Unity Hub.

  2. Select the Univeral 2D project, then Create project.

  3. When the new project opens, in the Hierarchy window, open the context menu (right-click) and select Create > Rendering > URP Asset (with 2D Renderer).

  4. Enter a name for the new assets.

URP creates a new URP Asset, and assigns it a new Universal Renderer asset with _Renderer appended to the name.

2D rendering is now set up for your project.

Note: Some of the settings in the URP asset that relate to 3D rendering won’t affect your final application.

Additional resources

Configure a 2D light
Prepare and upgrade sprites for 2D lighting in URP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961