|How do you use documentation throughout your workflow? Share your experience with us by taking this survey.|
A shaderA program that runs on the GPU. More info
See in Glossary variant collection is effectively a list of shader variantsA verion of a shader program that Unity generates according to a specific combination of shader keywords and their status. A Shader object can contain multiple shader variants. More info
See in Glossary. Use shader variant collections to prewarm shader variants, or to ensure that shader variants that are required at runtime but not referenced in a sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary are not stripped from your build.
You can create a shader variant collection asset in the following ways:
When you select a shader variant collection asset in your project, you can view and edit it in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary.
You can also configure a shader variant collection asset using the ShaderVariantCollection API.
To avoid visible stalls at performance-intensive times, Unity can ask the graphics driver to create GPU representations of shader variants before they are first needed. This is called prewarming. For more information on prewarming the shader variants in a shader variant collection, see Shader loading: Prewarming shader variants.