Unity Issue Tracker - FindObjectsOfType doesn't find objects when invoked in a method with RuntimeInitializeOnLoadMethod Attribute and loadType of BeforeSceneLoad
Closed
UUM-19216
FindObjectsOfType doesn't find objects when invoked in a method with RuntimeInitializeOnLoadMethod Attribute and loadType of BeforeSceneLoad
How to reproduce:
1. Open the user’s attached “WhenThingsHappenTest” project
2. Enter the Play Mode in the “SampleScene” Scene
3. Observe the Console log
Expected result: “numItems = 1” is logged
Actual result: “numItems = 0” is logged