Unity Issue Tracker - Accessing Material Passes in Awake/Start results in only a single "<Unnamed Pass 0>" pass when entering Play mode
Closed
UUM-33303
Accessing Material Passes in Awake/Start results in only a single "<Unnamed Pass 0>" pass when entering Play mode
Unity: Shader System
Won't Fix
2023.2.X
2023.1.X
2022.2.X
2021.3.X
2021.3.11f1 onwards
The call to GetPass in material validation was removed from HDRP to make it work when HDRP isn't fully initialized
But the issue with HDRP not being initialized before scripts is not gonna be fixed for now
Reproduction steps:
1. Open the attached "FAV_repro_IN-37607(2021.3.11f1).zip" project
2. Open "Assets/OutdoorsScene"
3. Enter Play mode
4. Observe the Console window
Expected result: All passes are displayed on GameObject Awake
Actual result: Only "<Unnamed Pass 0>" is displayed on GameObject Awake