Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

writing-shaders-urp-basic-prerequisites.md 948B


uid: urp-docfx-writing-shaders-urp-basic-prerequisites

Creating a sample scene

To follow the examples in this section:

  1. Install URP into an existing Unity project, or create a new project using the Universal Project Template.

  2. In the sample scene, create a GameObject to test the shaders on; for example, a capsule.

    Sample GameObject

  3. Create a new Material and assign it to the capsule.

  4. Create a new Shader asset and assign it to the Material of the capsule. When following an example, open the shader asset to edit the Unity shader source file. Replace the code in the source file with the code in the example.

To start writing URP shaders, continue to section URP unlit basic shader.